include() called twice
webmaster at localnotion.com
webmaster at localnotion.com
Tue Jun 18 16:46:37 EDT 2002
Howdy,
I want the following code to see if a file is present, 6then include it if it
is. I use3d the @ to supress an error if the file is not present. It works, but
mysteriously writes the file to the page TWICE. I tried require() instead and
the same results. Why is this? Thanks.
$file-location = /path/to/file/;
if (@readfile($file-location) != FALSE) {
include($file-location);
}
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
More information about the talk
mailing list