« Previous Next »

Thread: IIS 7 x64(Win7 Build 7100) - PHP 5.3 - PHPINFO() Problem

Last post 07-26-2009 1:27 AM by SolidareDesign. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 07-03-2009, 8:08 AM

    IIS 7 x64(Win7 Build 7100) - PHP 5.3 - PHPINFO() Problem

    I have just installed php 5.3(x86) on iis 7 in my Win7(x64) and then I ran a php script

    <?php

    phpinfo();

    ?>

     from the browser.

     

    What I see  on the screen is :

    PHP Warning:  phpinfo(): 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 '3.0/DST' instead in D:\mysite\index.php on line 2

    and that's all.
    I installed PHP Non Thread Safe VC9 through the installer and chose IIS-FASTCGI.
    Any suggestions?

    Thsnks

  • 07-03-2009, 8:45 AM In reply to

    Re: IIS 7 x64(Win7 Build 7100) - PHP 5.3 - PHPINFO() Problem

     I solved the problem with the solution here:

    http://blogs.iis.net/ruslany/archive/2009/06/12/upgrade-to-wordpress-2-8-and-php-5-3-on-iis-7.aspx

     

    What you need to do is just set the time zone in php.ini!

    e.g.

    date.timezone = Etc/GMT+10

     

    http://us3.php.net/manual/en/timezones.php

  • 07-14-2009, 3:25 PM In reply to

    Re: IIS 7 x64(Win7 Build 7100) - PHP 5.3 - PHPINFO() Problem

    I've received the same message under similar conditions and I'm wondering if you were able to resolve the problem yourself.

    Thanks

  • 07-26-2009, 1:27 AM In reply to

    Re: IIS 7 x64(Win7 Build 7100) - PHP 5.3 - PHPINFO() Problem

    Jim Cooper:

    I've received the same message under similar conditions and I'm wondering if you were able to resolve the problem yourself.

    Thanks

     

    I was having this issue, and corrected it by adjusting my php.ini with my timezone. :)

     Keep in mind that by default the line is commented out in the ini, so you need to uncomment and define your location.

    [Date]
    ; Defines the default timezone used by the date functions
    ; http://php.net/date.timezone
    ;date.timezone =

     To:

    [Date]
    ; Defines the default timezone used by the date functions
    ; http://php.net/date.timezone
    date.timezone = America/New_York

    Note that there are no quotes around America/New_York. That should wrap up the issues you're having.

Page 1 of 1 (4 items)
Microsoft Communities