note 88899 added to function.error-reporting

From: Date: Thu, 12 Feb 2009 14:48:59 +0000
Subject: note 88899 added to function.error-reporting
Groups: php.notes 
Request: Send a blank email to php-notes+get-150574@lists.php.net to get a copy of this message
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 :/ ---- Server IP: 217.160.72.57 Probable Submitter: 193.196.7.169 ---- Manual Page -- http://www.php.net/manual/en/function.error-reporting.php Edit -- https://master.php.net/note/edit/88899 Del: integrated -- https://master.php.net/note/delete/88899/integrated Del: useless -- https://master.php.net/note/delete/88899/useless Del: bad code -- https://master.php.net/note/delete/88899/bad+code Del: spam -- https://master.php.net/note/delete/88899/spam Del: non-english -- https://master.php.net/note/delete/88899/non-english Del: in docs -- https://master.php.net/note/delete/88899/in+docs Del: other reasons-- https://master.php.net/note/delete/88899 Reject -- https://master.php.net/note/reject/88899 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150574) next »