displaying errors with out access to configure php.ini

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
bhonan
Forum Newbie
Posts: 14
Joined: Sat Feb 02, 2008 12:55 pm

displaying errors with out access to configure php.ini

Post by bhonan »

is there a way to display errors on my page when that has been disabled in the main php config files? I'm working on a site on a server where I cannot modify the main php config.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: displaying errors with out access to configure php.ini

Post by s.dot »

The ini_set() function.

Place this at the top of your script.

Code: Select all

ini_set('display_errors', 'On');
error_reporting(E_ALL);
However, if there's a parse error, just a blank white page will be returned, even with the above code. You can also create a .htaccess file with the php configuration options.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply