How to enable php error prompts under mac

藏色散人
Release: 2023-03-03 13:04:01
Original
2575 people have browsed it

How to open mac php errors: First open the "php.ini" file; then modify the content to "display_errors = On"; then select the Log errors option of mamp pro; and finally select "to_screen".

How to enable php error prompts under mac

Recommended: "PHP Tutorial"

Enable php error reminder in mamp environment under MAC

1. The first step is to modify the php.ini file: open the /Applications/MAMP/bin/php/{your PHP version}/conf/php.ini file

Find display_errors = Off ( About line 277), change display_errors = On and find error_reporting = E_ALL (about line 270, there are 3 value types, set according to your own needs)

2. Set the Log errors option of mamp pro in two steps:

How to enable php error prompts under mac

Main Window->php->Log errors and select to_screen , so that errors will be prompted on the browser

After setting is completed, restart the service.

The above is the detailed content of How to enable php error prompts under mac. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!