Loading...

How do I find PHP errors?

Quickly Show All PHP Errors The quickest way to display all php errors and warnings is to add these lines to your PHP code file: ini_set(‘display_errors’, 1); ini_set(‘display_startup_errors’, 1); error_reporting(E_ALL);You can find the PHP error logs in a few possible places on the server: in your server’s root folder, called error.log in public_html or similar folder, called error.log

How do I get syntax errors in PHP?

Also make sure that display_errors is enabled in php.ini. If your PHP version is older than 5.2.4, set it to On: Aside from error_reporting and the display_errors ini setting, you can get SYNTAX errors from your web server’s log files.

Leave a Reply

Your email address will not be published. Required fields are marked *