I just got a new computer, and I was setting up PHP / MySQL / databases, etc. I think I'm just there, except that he threw this curved ball. My script login worked fine, but now it spits out the following warning (which will ruin JSON).
Warning : date () [function.date]: You cannot rely on the system time zone settings. You need to use the date.timezone parameter or the date_default_timezone_set () function. If you used any of these methods, and you still receive this warning, you most likely specified the time zone identifier with an error. We chose Antarctica / Macquarie for 'EST / 10.0 / no DST' instead of ... / php / login.php online 47
My code clearly uses date()and works in the live version and on the old machine. I get two warnings for the following two lines of code:
$date = date("ymd");
$this_year = date("y");
My research (see here ) shows that the behavior of these functions depends on php.ini.
php.ini , - , date()
.