解決 PHP 5.3.0 + WordPress 造成 It is not safe to rely on the system’s timezone settings.

Author: Eric  //  Category: Free Teaching

Warning: strtotime() [function.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 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 35

Warning: date() [function.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 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 43

Warning: strtotime() [function.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 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 35

Warning: date() [function.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 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 43

Read more...

讓 Windows Appserv 支援 .htaccess

Author: Eric  //  Category: Free Teaching

0. 為了測試 cos_slug_translator 這之 WP Plugin 的能力,所以想讓我架在本機 Windows 的 WP 也能支持 Permalinks,所以就研究一下怎樣讓 Windows 下的 AppServ 也支援 .htaccess

1. 找到你安裝 Apache 的資料夾,並進到 conf 資料夾 (default:C:\AppServ\Apache2.2\conf)

2. 用 文字編輯器 (eg:NotePad, NotePad++, Emeditor, UltraEditor ... etc ) 打開 httpd.conf

3.
a. 法一
Ctrl + F 找到 #LoadModule rewrite_module modules/mod_rewrite.so 把前面的 # 去掉
b. 法二
Ctrl + H 取代 目標 #LoadModule rewrite_module modules/mod_rewrite.so
取代 LoadModule rewrite_module modules/mod_rewrite.so

4. 用上面的方法把 #AccessFileName .htaccess 前面的 # 去掉 ( 有的default就去掉了 )

5. Restart Apache Server, Done! // 我按Restart沒有用,按 Stop 再按 Start 才成功