Hello,

I'm performing a readfile, and am expecting that if the file isn't found and
error will return unless you add the @ symbol before the readfile function
as in:

$retrn = @readfile ($FileName);

My page only errors, and doesn't return false.  I don't want my page to
error, I would like to display a custom error message as in "Page not
Found".

Here is the code in its entirety:
 $retrn = 0;
 $retrn = @readfile ($FileName);
 print $retrn;

Thanks for the help!


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