Hello all, just purchased my copy of 'Build Your Own Database...Using PHP & MYSQL' and tried my first script with strange results.
As the book suggested, I typed the following:
<p>Today’s date (according to this web server) is
echo date('1, F dS Y.');
Here is what my browser came back with:
Today’s date (according to this web service) is
Warning: date() [function.date]: 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/Denver' for '-6.0/DST' instead in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ oday.php on line 13
1, May 26th 2011.
The first line and last line seem to have worked somewhat, however the Warning block in the middle is not what I hoped for. Does anyone have an idea on how I can get rid of such Warning messages from my script. Thank you again for taking time to read my post. -Ben