1andyw
12-24-2010, 03:04 PM
Hi,
Lost my error reporting after upgrading apache, php and mysql.
Now running 2.2.17, 5.3.4, and 5.5.8.
Set the php.ini to error_reporting[E_ALL] and display_errors On
Write my script with <?php error_reporting(E_ALL);ini_set('error_reporting', E_ALL);?>
However, when I code an error, I get a blank screen.
What should I check next?
Thanks,
Andy
DJCMBear
12-24-2010, 03:12 PM
Try using this as well. Worth a shot even if it is turned on lol.
<?php
ini_set("display_errors",true);
?>
1andyw
12-24-2010, 03:44 PM
Thanks, DJCMBear. That got me back in business.
This is a new warning for me: Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-5.0/no DST
I didn't find a listing for timezone in php.ini or httpd.config.
Happen to know what file I should look in?
Thanks,
Andy
DJCMBear
12-24-2010, 03:58 PM
Try using this for selecting your server timezone.
date_default_timezone_set('DST');
EDIT: List of timezones can be found here - http://uk.php.net/manual/en/timezones.php
1andyw
12-24-2010, 04:19 PM
Thanks.
I followed your suggested link and arrived at this solution: date_default_timezone_set('America/New_York');
Problem solved.
:)
DJCMBear
12-24-2010, 04:51 PM
I'm glad you fixed your problems.