Re: Re: include/require vs performance
| From: | Leon Mergen | Date: | Fri, 03 Jan 2003 13:43:35 +0000 |
| Subject: | Re: Re: include/require vs performance | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130092@lists.php.net to get a copy of this message | ||
"Stephan Seidt" <blizz@0x03.net> schreef in bericht
news:3E159310.6000702@0x03.net...
> I guess that PHP will close file 1 before it opens
> file 2 and so on.. For example :
>
> include 'foo';
> include 'bar';
>
> When bar is being opened foo is already closed.
Hmmm, i think the parser is built recursive, so at the moment it sees an
"include 'foo';" , it will look in foo, parse that one, and after it has
finished foo, it will continue with the main script...