Tag: PHP

111 月

使用 PHPMailer 注意事項

在使用 PHPMailer 時,注意一定要檢查以下屬性是否正確設定 $mail->Sender 
  • PHP
  • Posted by admin  Posted on 11 1 月  0 Comments
  • Read More
101 月

PHP preg_replace 使用注意事項

當使用 preg_replace 作關鍵字批次 pattern 替換時, 要小心避免關鍵字巢狀替換的問題, 要先替換成獨一無二的代碼,再從代碼替換回來。另外在使用 preg_replace 作字串比對替換時,若 DB 為 BIG5 編碼,也要小心雙位元字碼交錯, 所造成的比對錯誤問題,這裡在處理時要特別小心,免得一失足成千古恨...
  • PHP
  • Posted by admin  Posted on 10 1 月  0 Comments
  • Read More
2912 月

如何在靜態頁引入動態判斷的區塊

一般這類的應用是在 ad, log, tracking, member real-time info, 動態內容靜態化處理等等… 雖然有即時更新的好處,但缺點就是多一個 js 請求,內容不利於 SEO,會操伺服器
  • PHP
  • Posted by admin  Posted on 29 12 月  0 Comments
  • Read More