How to display PHP errors on a page

If you don’t want to change php.ini and display all errors on every page, you can use ini_set on a page by page basis.
Add this at the top of your page to show errors on a PHP page:
ini_set('display_errors', 1);
ini_set('log_errors', 1);
error_reporting(E_ALL);


When you change a page’s margins in Google Docs, you’re changing the amount of space you want between the edge of the page and the text.
How to display PHP errors on a page

If you don’t want to change php.ini and display all errors on every page, you can use ini_set on a page by page basis.
Add this at the top of your page to show errors on a PHP page:
ini_set('display_errors', 1);
ini_set('log_errors', 1);
error_reporting(E_ALL);


When you change a page’s margins in Google Docs, you’re changing the amount of space you want between the edge of the page and the text.
How to display PHP errors on a page

If you don’t want to change php.ini and display all errors on every page, you can use ini_set on a page by page basis.
Add this at the top of your page to show errors on a PHP page:
ini_set('display_errors', 1);
ini_set('log_errors', 1);
error_reporting(E_ALL);


When you change a page’s margins in Google Docs, you’re changing the amount of space you want between the edge of the page and the text.
How to display PHP errors on a page

If you don’t want to change php.ini and display all errors on every page, you can use ini_set on a page by page basis.
How to display PHP errors on a page

Add this at the top of your page to show errors on a PHP page:
ini_set('display_errors', 1);
ini_set('log_errors', 1);
error_reporting(E_ALL);
Add this at the top of your page to show errors on a PHP page:
ini_set('display_errors', 1);
ini_set('log_errors', 1);
error_reporting(E_ALL);
Make use of ini_set


When you change a page’s margins in Google Docs, you’re changing the amount of space you want between the edge of the page and the text.


When you change a page’s margins in Google Docs, you’re changing the amount of space you want between the edge of the page and the text.






Follow @howchoo and learn cool things:
Are you a passionate writer? We’re hiring!
Write for HowchooLike what we do?
DonateWant to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.