- 111 月
-
使用 PHPMailer 注意事項
在使用 PHPMailer 時,注意一定要檢查以下屬性是否正確設定 $mail->Sender - Posted by admin Posted on 11 1 月 0 Comments Read More
- 101 月
-
PHP preg_replace 使用注意事項
當使用 preg_replace 作關鍵字批次 pattern 替換時, 要小心避免關鍵字巢狀替換的問題, 要先替換成獨一無二的代碼,再從代碼替換回來。另外在使用 preg_replace 作字串比對替換時,若 DB 為 BIG5 編碼,也要小心雙位元字碼交錯, 所造成的比對錯誤問題,這裡在處理時要特別小心,免得一失足成千古恨...- Posted by admin Posted on 10 1 月 0 Comments Read More
- 2912 月
-
如何在靜態頁引入動態判斷的區塊
一般這類的應用是在 ad, log, tracking, member real-time info, 動態內容靜態化處理等等… 雖然有即時更新的好處,但缺點就是多一個 js 請求,內容不利於 SEO,會操伺服器- Posted by admin Posted on 29 12 月 0 Comments Read More
- 2512 月
-
CURLOPT_POSTFIELDS 和 http_build_query 使用注意事項
當使用 http_build_query 轉換設置 CURLOPT_POSTFIELDS 時, 最好明確設定 http_build_query 第三個參數為 &,以避免被環境設定因素影響。- Posted by admin Posted on 25 12 月 0 Comments Read More
- 263 月
-
網頁已過期的問題-GET, POST, PostBack
GET urlencode(), encodeURIComponent(), form hidden &- Posted by admin Posted on 26 3 月 0 Comments Read More
- 288 月
-
json_encode() 使用注意事項之一
PHP 的 json_encode() 非常好用,很適合拿來與 JavaScript 協同運作, 例如直接將資- Posted by admin Posted on 28 8 月 0 Comments Read More