I'm using the basic MAMP on Mac, and PHP doesn't display errors, I already changed PHP and Apache configuration but still, can someone help me?
2 Answers
First of all make sure that you are editing the right file. MAMP usually creates several php.ini files. Call phpinfo() and check the path to the correct php.ini.
In your php.ini you need to set the following:
display_errors = on
error_reporting = E_ALL
Don't forget to restart Apache after the changes.
1 Comment
Arthur Guiot
Ok, I solved my own Problem, at the end of php.ini, display_errors was turned of, so it ignored the first argument
ini_set('display_errors', 1);ini_set('display_startup_errors', 1);error_reporting(E_ALL);