I followed the instruction in writing the script from the pdf
1.<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
2.“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
3.<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>
4.<head>
5.<title>Today’s Date</title>
6.<meta http-equiv=“content-type”
7.content=“text/html; charset=utf-8”/>
8.</head>
9.<body>
10.<p>Today’s date (according to this web server) is
11.<?php
13.echo date(‘l, F dS Y.’);
15.?>
16.</p>
17.</body>
18.</html>
When I open my browser I get a warning message:
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/los_angeles’ for ‘-8.0/no DST’ instead in c:\…\htdocs\ oday.php on line 13
Friday, December 17th 2010
Did I missed to configure something else? ![]()
Could it be that I’m using apache2.2 and php5 ![]()