lundi 19 septembre 2016

php.ini does not produce error, even though it contains error_reporting = E_ALL and display_errors = On

my index.php file that purposely has a missing semicolon in it so it tests the error handling:

<?php
echo "string
echo "string";
?>

my php.ini

error_reporting = E_ALL
display_errors = On

I'm using FireFTP to handle these files.

here's a picture of that : http://ift.tt/2d3FMRM

So whenever I open index.php, instead of getting an error with line # and all that I get this instead: http://ift.tt/2cUHkQU

I tried something like this:

<?php
error_reporting( E_ALL );
ini_set( "display_errors", 1 );
require_once( "index.php" );

echo "string";
echo "string";
?>

and it still didn't work :l




Aucun commentaire:

Enregistrer un commentaire