Posted by Stefan Mueller on 02/02/06 19:50
> No, PHP is executed from top to bottom, it will only include those pages
> it's told to include depending on the condition. In your switch example,
> there would be at most one file included (no default, so there can be time
> no file is included).
You're right. 'Include' in PHP is not like 'Include' in C++. The file gets
only loaded if the 'include' command gets executed. Therefore it also works
with dynamic filenames.
Wow, that's exactly what I was looking for.
Many thanks to all of you
Stefan
[Back to original message]
|