how to display errors on MAMP?
I have MAMP, and I don't know how to display errors on it, when I have error on my php code it shows only blank pages, i have searched on Google, and I saw that I have to change it to display_errors = on on all of the folders and versions... and include this on my page: error_reporting(E_ALL); ini_set('display_errors', 'on');
Stop your server.
Go to
Applications/Mamp/bin/php/phpVERSION/conf/php.ini
Set
error_reporting=E_ALL
display_errors=On
Start your server.
If this doesn't help - please post your phpInfo page.
This is how I got mine to display error:
I am using MAMP with php version 7.0.6.
What I did was go to MAMPconfphpVERSION
and open up the php.ini
file there and change the display_errors
value there to display_errors = On
. Once changed, restart your MAMP.
上一篇: 建立一个http连接来发送xml数据
下一篇: 如何在MAMP上显示错误?