PHP 5.3.x 的 strtotime() 時區設定 警告訊息修正

Debian Linux 使用 testing 的話, 若於上星期有做過 dist-upgrade 的話, 就會發現 PHP 已經被升級到 5.3.1-5, 而且出現一堆警告訊息.

我遇到的有下面這三種錯誤訊息:

  1. PHP Warning:  strtotime(): 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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /tmp/a.php
  2. PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/imagick.so' /usr/lib/php5/20090626/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
  3. PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0

閱讀全文〈PHP 5.3.x 的 strtotime() 時區設定 警告訊息修正〉

好市多照片線上沖印

小朋友剛出生, 要寄照片回去給家人看, 才知道好市多有線上沖印的服務.

帶隨身碟去好市多洗照片, 需要等 1hr.

使用線上沖印服務, 就可以在家裡把要沖印的傳過去, 等通知信, 之後直接到現場就可直接領取囉~ 🙂

註: 優點是到場就可以直接取(不用排隊選照片、等1hr), 缺點是需要等來信通知(約2~3天的工作天.

閱讀全文〈好市多照片線上沖印〉