On Friday 14 September 2001 10:17, --- wrote:
> There are 3 functions in php that works similar to #include:
> include("filename.ext"): include filename.ext and parse it like a php
> file
> require("filename.ext"); like include, but it's included only one time,
> if the code contains two require with the same file that file will be
> included only one time, instead of include that will include it twice

Wrong. include and require behave (almost?) identical in current PHP 
versions. In earlier versions require only took constant file names, 
while include could handle variable ones.
What you mean is include_once() and require_once()

> readfile("filename.ext"); read filename.ext and print it to the output,
> don't parse it.

Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

I saw God --------- and she was black.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to