note 53239 deleted from function.include-once by salathe
| From: | salathe@php.net | Date: | Mon, 21 Sep 2020 14:41:14 +0000 |
| Subject: | note 53239 deleted from function.include-once by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215266@lists.php.net to get a copy of this message | ||
Note Submitter: flobee at gmail dot com
----
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');
}
?>