Possible Duplicate:
PHP: How do I enable error reporting?
yesterday i had this question: nothing show's up when class is in php code
Normally i work on my own host but now i switched and i didn't realize i had error reporting off. Now i try to get it on. I don't have acces to the root so i created my own ini.php, does that matter? In ini.php i tried:
php_flag display_errors on
php_flag display_startup_errors on
php_value error_reporting 2047
But no errors show up, and neither does the website.. Then i tried .htaccess which is alowed to be in every folder if i recall corect.
.htaccess has:
php_value error_reporting 6143
But no errors and no website again.
also tried .htacces with:
<IfModule mod_php5.c>
display_errors 1
</IfModule>
which gives:
The script could not be executed correctly. Common causes might be that the file was uploaded in a non-ASCII format or the path to the interpreter (e.g.: #!/usr/bin/perl) is missing or set incorrectly.
I tried then just as php file:
<?php
error_reporting(64);
require('test.txt');
?>
which shows no error Also tried:
ini_set('display_errors', 1);
and still no errors and no website :(
Does anyone have a idea what i can do? :(
Try
error_reporting(-1);
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
even though this has been asked so many times...
Just take a look at the manual http://php.net/manual/en/ini.list.php
error_reporting NULL PHP_INI_ALL
display_errors "1" PHP_INI_ALL
To Test it just try this:
<?php
ini_set('error_reporting',E_ALL);
ini_set('display_errors',1);
echo $notExistingVar;
phpinfo();
?>