Hi there.
My host has set 'display_errors = Off' in the php.ini file to my server, so when there is an error, I just get a blank screen.
Is there any way I can get PHP to ignore this?
Displaying PHP errors without changing the PHP.ini
Moderator: General Moderators
- dibyendrah
- Forum Contributor
- Posts: 491
- Joined: Wed Oct 19, 2005 5:14 am
- Location: Nepal
- Contact:
I think using the following piece of code might resolve your problem.

Code: Select all
ini_set('display_error', 1);
error_reporting(1);- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Regardless of the display_errors property, your page won't run if there is a fatal error. If you just want to see the errors displayed, use...
Code: Select all
<?php
ini_set('display_errors', 1);
?>- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
php_flag display_errors on