note 88899 deleted from function.error-reporting by danbrown
| From: | danbrown@php.net | Date: | Fri, 23 Apr 2010 17:15:54 +0000 |
| Subject: | note 88899 deleted from function.error-reporting by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168571@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
FYI,
I got a blank page because I included a file with an @ to surpress the error message, if that file
possibly didn't exists:
<?php
if(@!include($file)){
header("HTTP/1.0 404 Not Found");
}
?>
But this caused, that all errors in the included file were surpressed, too.
Maybe just a stupid remark, but it took me hours to find the problem :/