SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Feb 2011
    0 Post(s)
    0 Thread(s)

    Today.php - Build Your Own Database Driven Web Site Using PHP & MySQL


    I got to try my 1st php script today.php

    This is what i wrote in the txt file:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    <html xmlns="" xml:lang="en" lang="en">
    <title>Today&rsquo;s Date</title>
    <meta http-equiv="content-type"
    content="text/html; charset=utf-8"/>
    <p>Today&rsquo;s date (according to this web server) is
    echo date('l, F dS Y.');

    And thats the result on my browser under http://localhost/today.php :

    Today’s date (according to this web server) is
    Warning: 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 'Europe/Helsinki' for '2.0/no DST' instead in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\today.php on line 12
    Wednesday, February 23rd 2011.

    Any ideas why i got this Warning message?

    Thanks in advance.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Melbourne, AU
    448 Post(s)
    8 Thread(s)
    Hi DKok, welcome to SitePoint!

    Here is a thread that discussed the same issue:

    See if that helps.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  3. #3
    SitePoint Member
    Join Date
    Feb 2011
    0 Post(s)
    0 Thread(s)
    Cheers for the info Ralph, appreciate your help and its good to be here


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts