When using a MAMP installation as your PHP development environment the errors are not displayed in the browser web page itself.
Instead they are stored in the following location:
Instead they are stored in the following location:
- "/MACINTOSH/User/Applications/MAMP/logs/php_error.log"
You can also find the error logs for MySQL and Apache in the same location in files named "mysql_error_log.err" and "apache_error.log" respectively.
Note: You can also enable error display on the browser webpage itself via changing the following setting in the PHP configuration file, but it is highly not recommended as it displays sensitive information to visitors of the site.
- /MACINTOSH/User/Applications/MAMP/conf/php[version]/php.ini"
- find "display_errors" uncommented entry and change it from "Off" to "On"
No comments:
Post a Comment