@ 2010年10月28日

最近在瞎忙……

不是我不想更新 Blog,只是最近公司的事情忙得快让我呕吐…… 公司业务事无巨细,一律提交到我这里分发,除了要处理新站建设,旧系统的种种问题更是多如牛毛(居然还有ASP的单子)。当时公司的人事整改让我很疑惑,也可能是大家都习惯了这种低效的业务方式,Ben 哥也常跟我抱怨设计部怎样,其实 大哭 技术部更加杯具……老婆喊我好好学学管理,我想我是应该好好的花时间整理下目前的业务流程,不然,还有得继续忙下去……

@ 2010年10月10日

PHP 5.3.3 下 ECSHOP 安装错误

今天在新机器部署了 PHP 5.3,在安装 ECSHOP 的时候,提示安装失败,提示信息如下:

Warning: date_default_timezone_get() [function.date-default-timezone-get]: 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 'UTC' for '8.0/no DST' instead in install\includes\lib_installer.php

检查 PHP 手册,有注明:

Note:

Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn't valid, and/or a E_WARNING message if using the system settings or the TZ environment variable.

造成 WARNING 原来是系统配置里没有设定默认时区,ECSHOP 调用 date_default_time_get (date/time 函数) 时则会产生错误。在 php.ini 里设定一下:

date.timezone = Asia/Shanghai

或在代码里加入 date_default_timezone_set ('Asia/Shanghai'); 即可解决

© 2011 Bun Wong

本博客基于 Bun PHP Framework 构建 • 粤ICP备07036370号