Re: Re: include/require vs performance
| From: | Stephan Seidt | Date: | Fri, 03 Jan 2003 13:59:11 +0000 |
| Subject: | Re: Re: include/require vs performance | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130097@lists.php.net to get a copy of this message | ||
well ok, if it's :
main.php :
include 'foo';
foo :
include 'bar';
bar :
include 'whatever';
...
there will be lots of used file descriptors at once
Leon Mergen wrote:
"Stephan Seidt" <blizz@0x03.net> schreef in bericht news:3E159310.6000702@0x03.net...-- I won't pay Bills'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...