Readfile only return error

From: Date: Tue, 30 Jan 2001 17:16:30 +0000
Subject: Readfile only return error
Groups: php.general 
Request: Send a blank email to php-general+get-37346@lists.php.net to get a copy of this message
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!

« previous php.general (#37346) next »