include() called twice

webmaster at webmaster at
Tue Jun 18 16:46:37 EDT 2002


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) {

This mail sent through IMP:

More information about the talk mailing list