Originally posted by skinme!
mordred, you mentioned above that when using filesystem commands, the file to be used cannot contain PHP code itself.
No, I did not say that. What I describe was an example how to open a file and evaluate it's complete contents through the eval() function. Such a file most contain *only* php code, since eval("<php") gives you an error.
include et al are also not filesystem functions. They are language constructs, though they work in manner that relates to opening a file through the filesystem functions.
Hope that clears things up.
Ah, one thing more: You need to use <?php and ?> on included files because with the include constructs, PHP drops out of the php parsing. That's pretty handy because you can put large static HTML content into a template file and just include() it to write it to the output.