Re: [請益] phpmailer的問題

看板PHP作者 (每天都在公司玩OLG)時間16年前 (2009/10/05 04:44), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《a10012230 (???)》之銘言: : 我使用PHP5.3.0 : 我去下載了phpmialer for PHP5/6的版本 你用的 phpmailer 版本? [略] : /* Retry while there is no connection */ : while($index < count($hosts) && $connection == false) { : $hostinfo = array(); : if(eregi('^(.+):([0-9]+)$', $hosts[$index], $hostinfo)) { : $host = $hostinfo[1]; : $port = $hostinfo[2]; : } else { : $host = $hosts[$index]; : $port = $this->Port; : } 剛本來想追程式碼,然後把「不該使用 ereg」的事報到官方去的。 可是我的 phpmailer 5.0.2 程式碼是這樣: // Retry while there is no connection try { while($index < count($hosts) && !$connection) { $hostinfo = array(); if (preg_match('/^(.+):([0-9]+)$/', $hosts[$index], $hostinfo)) { $host = $hostinfo[1]; $port = $hostinfo[2]; } else { $host = $hosts[$index]; $port = $this->Port; } 所以,更新吧~ -- ★kathsda 踩叮噹能發洩情緒壓力 是本公司的福利 To kathsda: 感謝您說明踩叮噹的益處,我會協助推廣踩叮噹運動~ ★kathsda ( ̄□ ̄|||)a。。。為什麼我一直在出產簽簽呢 To kathsda: 據聞... 叮噹出產(簽簽),必屬佳作! ★kathsda 別再相信沒有根據的事實了( ‵□′)───C<─___-)||| ★kathsda x的...打錯自婊了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.204.106.34
文章代碼(AID): #1AoGaj9k (PHP)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #1AoGaj9k (PHP)