|
Posted by Armando Padilla on 08/02/07 17:54
Rik wrote:
> On Thu, 02 Aug 2007 19:47:23 +0200, gosha bine <stereofrog@gmail.com>
> wrote:
>> php only includes files when the require/include statements are
>> executed, in other words
>>
>> $x = 1;
>>
>> if(1 == $x)
>> require("include this");
>> else
>> require("this-will-be-NEVER-included");
>
> Since 4.0.2, then again, anyone running a lower version really should
> upgrade....
Ah ok, thanks. so nothing gets placed into mem if its not reached,
gotcha. I though it was the case that all required docs were called
when creating the intermediate code on the engine and then depending on
the if-else statement the required doc would be executed or not.
Navigation:
[Reply to this message]
|