如何在MAMP上显示错误? [英] how to display errors on MAMP?
本文介绍了如何在MAMP上显示错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有MAMP,但我不知道如何显示错误, 当我的php代码有错误时,它仅显示空白页面, 我在Google上进行了搜索,我发现我必须在所有文件夹和版本上将其更改为display_errors =. 并将其包含在我的页面中: error_reporting(E_ALL); ini_set('display_errors','on');
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');
推荐答案
停止服务器.
转到
Applications/Mamp/bin/php/phpVERSION/conf/php.ini
设置
error_reporting=E_ALL
display_errors=On
启动服务器.
如果这没有帮助-请发布您的phpInfo页面.
If this doesn't help - please post your phpInfo page.
这篇关于如何在MAMP上显示错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文