I'm trying to make php show errors, right now all I get is a blank page. I've tried changing the php.ini file that seems to be the php configuration file but to no success. Could it be that phpinfo() is wrong about what config file is been loaded? (I did restart apache)
phpinfo Loaded Configuration File -> /etc/php5/apache2/php.ini. I copy-pasted the path and filename so misspelling it is not an issue.
Enable error reporting at the top of the php page:
ini_set("display_errors", 1);
ini_set("display_startup_errors", 1);
error_reporting(-1);
do this by using the following code and inside you php.ini file display_errors = on
error_reporting(E_ALL);
ini_set('display_errors',1);
ini_set('error_reporting', E_ALL);
ini_set('display_startup_errors',1);
error_reporting(-1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With