years ago … 2005-05-26 02:55
i already had a discussion with several people about „not shown errors“
error reporting and all others in php.ini set to: „show errors“ to find problems:
the answer i finally found:
if you have an „@include…“ instead of „include…“ or „require..(’somthing‘) in any place in your code
all following errors are not shown too!!!
so, this is actually a bad idea when developing because paser errors will be droped too:
<?php if(!@include_once('./somthing') ) { echo 'can not include'; }
solution:
<?php if(!@file_exists('./somthing') ) { echo 'can not include'; } else { include('./something'); }
Thanks to flobee for providing me with the epiphany on why pages were showing up blank…-Metagg
Schreibe einen Kommentar
Du musst angemeldet sein, um einen Kommentar abzugeben.