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
>
>
[Back to original message]
|