19 Feb
Author: Eric // Category:
WordPressWordPress 出現 Fatal error: Maximum execution time of 30 seconds exceeded 是因為主機對程式的執行時間作了限制,解決方法如下 :
// 擇一使用即可,依不可行性排序
01. 自己的主機 or 虛擬主機且可以修改 php.ini
a. 修改 php.ini 裡 max_execution_time 的數值,重新啟動 Server
b. .htaccess 加上 php_value max_input_time 300
c. wp-config.php 加上 set_time_limit( 300 );
02. 虛擬主機 : 不可以修改 php.ini
a. .htaccess 加上 php_value max_execution_time 300
b. wp-config.php 加上 set_time_limit( 300 );
// 如果主機有安裝 suPHP
.htaccess file 的 php_value max_execution_time 300 改成 max_execution_time = 300
Ref :
01. PHP Runtime Configuration
02. PHP set_time_limit ( int $seconds )
09 Oct
Author: Eric // Category:
Free Teaching01. 如果要存檔成 UTF-8, 千萬別跟自己過不去, 去使用 Windows 內建的記事本, 請使用 PSPad, NotePad++, EmEditor, UltraEdit 或其它好一點的文字編輯器。因為使用 Windows 內建的記事本, 以UTF-8存檔時, 會自動添加 BOM 標籤, 而造成一些問題, 如 Warning: Cannot modify header information - headers already sent by...。

Read more...
05 Oct
Author: Eric // Category:
Free Teaching(一、) 跟舊家說掰掰
01. 使用 FTP Client 軟體, 把舊空間的檔案全部都下載下來。把 public_html, httpdocs, www 下的檔案全部下載下來。
// 依不同的空間後台, 有不同的名字 public_html, httpdocs, www, htdocs
02. 備份資料庫
a. 使用 WP-DB-Backup, WP-DBManager 來備份。
b. 登入到空間後台 -> phpMyAdmin -> 於下拉式選單找到您 WordPress 的資料庫 -> Export(輸出) -> 左上角框框下點 Select All -> 於 Save as file 打勾 -> 下方的 Compression: None, zipped, gzipped, 一般選 None 或 gzipped 皆可 -> Go。
Read more...
04 Oct
Author: Eric // Category:
Free Teaching00. 我被嚇到了, 之前一天 2~3 篇 Spam, 感覺還可以接受, 後來用 .htaccess 把常來留垃圾留言的 IP 封了, 接下就都沒 Spam, 又覺得無聊, 就把封 IP 的設定取消。昨天心血來潮去封了 2 個 IP, 結果今天一次出現 25 則 Spam, 所以決定啟用一下先前介紹的用簡單數學題目防止垃圾留言(Math Comment Spam Protection Plugin)。
01. 之前 comment 的 id 一次都跳個 2~3 號, 算是可接受範圍, 但這次一次跳 25 號, 感覺挺不是滋味的, 所以就 Google 找答案。在眾多的搜尋結果中, 突然有溫庭筠的夢江南中提到的過盡千帆皆不是的感覺, 因為大部分都是關於解決 WordPress 文章不連號的的方法, 不過皇天不負苦心人, 終於讓我找到答案了。
Read more...