View Single Post
Old 08-01-2002, 04:55 PM   PM User | #7
mordred
Senior Coder


 
Join Date: Jun 2002
Location: frankfurt, german banana republic
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
mordred is an unknown quantity at this point
Quote:
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.
mordred is offline   Reply With Quote