<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Eric&#039;s Who Know &#187; Appserv</title> <atom:link href="http://who-know.com/tag/appserv/feed/" rel="self" type="application/rss+xml" /><link>http://who-know.com</link> <description>C&#039;est La Vie</description> <lastBuildDate>Mon, 17 May 2010 22:21:05 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>解決 PHP 5.3.0 + WordPress 造成 It is not safe to rely on the system’s timezone settings.</title><link>http://who-know.com/php-wordpress-it-is-not-safe-to-rely-on-the-system-timezone-settings/</link> <comments>http://who-know.com/php-wordpress-it-is-not-safe-to-rely-on-the-system-timezone-settings/#comments</comments> <pubDate>Sat, 03 Oct 2009 18:16:36 +0000</pubDate> <dc:creator>Eric</dc:creator> <category><![CDATA[Free Teaching]]></category> <category><![CDATA[APMServ]]></category> <category><![CDATA[Appserv]]></category> <category><![CDATA[date_default_timezone_set]]></category> <category><![CDATA[EasyPHP]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[php.ini]]></category> <category><![CDATA[PHPnow]]></category> <category><![CDATA[timezone]]></category> <category><![CDATA[WampServer]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[XAMPP]]></category><guid isPermaLink="false">http://who-know.com/?p=83</guid> <description><![CDATA[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 [...]]]></description> <content:encoded><![CDATA[<p>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</p><p>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</p><p>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</p><p>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</p><p><span id="more-83"></span>00. 大多看到這問題發生在您用的是 <a href="http://www.php.net/" target="_blank">PHP</a> 5.3.0 或使用套裝軟體搭配的 <a href="http://www.php.net/" target="_blank">PHP</a> 版本是 5.3.0。</p><p>01. 下面為解決的方法, 則一使用即可, 依推薦使用的順序排序。</p><p>&nbsp;&nbsp;1. 修改 ./wp-config.php, 加上</p><pre class="brush: php;">date_default_timezone_set('Asia/Taipei');</pre><p>&nbsp;&nbsp;2. 修改 ./wp-includes/functions.php</p><p>&nbsp;&nbsp;&nbsp;&nbsp;a. 在第一個 function 前面加上<pre class="brush: php;">date_default_timezone_set('UTC+8');</pre><p>&nbsp;&nbsp;&nbsp;&nbsp;b. 在第一個 function 前面加上<pre class="brush: php;">date_default_timezone_set('Asia/Taipei');</pre><p>&nbsp;&nbsp;3. 修改 php.ini, 加上</p><pre class="brush: php;">date.timezone = &quot;Asia/Taipei&quot;</pre><p>02. 上面的 Asia/Taipei 均可以替換成下面任一城市, 其它城市請到 <a href="http://www.appservnetwork.com/" target="_blank">PHP timezones</a> 尋找</p><p>日本 : Asia/Tokyo<br /> 台北 : Asia/Taipei<br /> 重慶 : Asia/Chongqing<br /> 漢城 : Asia/Seoul<br /> 上海 : Asia/Shanghai<br /> 新加坡 : Asia/Singapore<br /> 澳門 : Asia/Macao 或 Asia/Macau<br /> 香港 : Asia/Hong_Kong 或 Asia/Chungking</p><p>03. 上面所提到的套裝軟體為 <a href="http://www.appservnetwork.com/" target="_blank">AppServ</a>, <a href="http://phpnow.org/" target="_blank">PHPnow</a>, <a href="http://www.apachefriends.org/" target="_blank">XAMPP</a>, <a href="http://www.wampserver.com/" target="_blank">WampServer</a>, <a href="http://www.wampserver.com/" target="_blank">APMServ</a>, <a href="http://www.easyphp.org/index.php" target="_blank">EasyPHP</a>。</p><p>Ref:<br /> 01. <a href="http://wordpress.org/support/topic/285337" target="_blank">WordPress Support</a><br /> 02. <a href="http://us3.php.net/manual/en/function.date-default-timezone-set.php" target="_blank">PHP date_default_timezone_set</a></p> ]]></content:encoded> <wfw:commentRss>http://who-know.com/php-wordpress-it-is-not-safe-to-rely-on-the-system-timezone-settings/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>讓 Windows Appserv 支援 .htaccess</title><link>http://who-know.com/having-the-appserv-in-windows-support-the-htaccess-file/</link> <comments>http://who-know.com/having-the-appserv-in-windows-support-the-htaccess-file/#comments</comments> <pubDate>Sat, 15 Aug 2009 16:04:51 +0000</pubDate> <dc:creator>Eric</dc:creator> <category><![CDATA[Free Teaching]]></category> <category><![CDATA[.htaccess]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[Appserv]]></category> <category><![CDATA[Permalinks]]></category> <category><![CDATA[Windows]]></category><guid isPermaLink="false">http://who-know.com/%e8%ae%93-windows-appserv-%e6%94%af%e6%8f%b4-htaccess/</guid> <description><![CDATA[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. 法二
[...]]]></description> <content:encoded><![CDATA[<p>0. 為了測試 cos_slug_translator 這之 WP Plugin 的能力，所以想讓我架在本機 Windows 的 WP 也能支持 Permalinks，所以就研究一下怎樣讓 Windows 下的 AppServ 也支援 .htaccess</p><p>1. 找到你安裝 Apache 的資料夾，並進到 conf 資料夾 (default:C:\AppServ\Apache2.2\conf)</p><p><a href="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/001.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img src="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/001.png" alt="" width="554" height="321" /></a></p><p>2. 用 文字編輯器 (eg:NotePad, NotePad++, Emeditor, UltraEditor ... etc ) 打開 httpd.conf</p><p>3.<br /> a. 法一<br /> Ctrl + F 找到 #LoadModule rewrite_module modules/mod_rewrite.so 把前面的 # 去掉<br /> b. 法二<br /> Ctrl + H 取代 目標 #LoadModule rewrite_module modules/mod_rewrite.so<br /> 取代    LoadModule rewrite_module modules/mod_rewrite.so</p><p><a href="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/002.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img src="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/002.png" alt="" width="524" height="357" /></a></p><p>4. 用上面的方法把 #AccessFileName .htaccess 前面的 # 去掉 ( 有的default就去掉了 )</p><p>5. Restart Apache Server, Done! // 我按Restart沒有用，按 Stop 再按 Start 才成功<br /> <a href="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/003.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img src="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/003.png" alt="" width="554" height="321" /></a></p><p><a href="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/004.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img src="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/004.png" alt="" width="554" height="470" /></a></p> ]]></content:encoded> <wfw:commentRss>http://who-know.com/having-the-appserv-in-windows-support-the-htaccess-file/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>