用的是oscommerce2.2,Apache2.2,php6。按照流程把目录放到www\catalog\下安装完OSC后,在本机URL打开整体网站能显示出来。但页面中还是显示一些错误代码。我看了一下大部分是PHP6不支持某些函数了,请问高手有什么解决方法?有OSCommerce的朋友请多帮忙啊,小弟在此不胜感激!谢谢了!1:
Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '8.0/no DST' instead in C:\AppServ\www\catalog\includes\languages\english.php on line 3172:
Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '8.0/no DST' instead in C:\AppServ\www\catalog\includes\modules\new_products.php on line 163:
Strict Standards: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '8.0/no DST' instead in C:\AppServ\www\catalog\includes\counter.php on line 274:
Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '8.0/no DST' instead in C:\AppServ\www\catalog\includes\counter.php on line 27

解决方案 »

  1.   

    Php6不是不支持某些函数,而是不支持修改时区,你可以在网上翻译一下,意思就明白了,Php6认为这个行为不安全。
      

  2.   

    噢。我知道了。谢谢1楼的兄弟。因为PHP没接触过。刚刚GOOGLE了一下,在DATE()函数之前加入一句。date_default_timezone_set('UTC');这样就不报错了。谢了!