You are here: Re: problem while including two scripts... « All PHP « IT news, forums, messages
Re: problem while including two scripts...

Posted by Carl on 12/29/05 01:42

Leszek wrote:
> Hi.
> Could you help solve the problem:
>
> i have a file that has two includes:
>
> //my script
> <?php
> include(.'/prog1.php');
> include(.'/prog2.php');
> ?>
>
>
> the thing is that prog1.php has two loops inside and prog2.php has no loops.
> So prog1.php is slower than prog2.php
>
> So prog2.php is done before prog1.php
>
> Am I right?
>

No.
The file 'prog1.php' will be completely 'included' before the
'prog2.php' include happens.

Try it.

Carl.

> And I want to make sure that prog1.php is done before prog2.php starts
>
> Is it possible to do?
> How can it be done?
>
> Thanks
> Leszek
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация