|
 |
|
ช่วยดูโค็คการส่งเมล์โดยผ่านฟังก์ชั่น ส่ง 2 ไฟล์ เมล์เข้า 2 เมล์ อยากให้เข้าเมล์เดียว |
|
 |
|
|
 |
 |
|
Code (PHP)
function PhpUploader_Copy()
{
global $PhpUploader_FSEncoding;
global $PhpUploader_InternalEncoding;
$er=error_reporting(0);
$re=copy(iconv($PhpUploader_InternalEncoding,$PhpUploader_FSEncoding,$src),iconv($PhpUploader_InternalEncoding,$PhpUploader_FSEncoding,$dst));
$tempfilename = iconv($PhpUploader_InternalEncoding,$PhpUploader_FSEncoding,$dst);
insertfilename(substr($tempfilename,strpos($tempfilename,"/")+1,strlen($tempfilename)));
updatestatus();
sentmailiso();
error_reporting($er);
if($re===false)
{
$le=error_get_last();
throw(new Exception($le["message"] . " , failed to copy $src to $dst' , at $_file line $_line"));
}
return $re;
}
ผมเรียกใช้ ฟังก์ชั่น sentmailiso(); แต่เวลาผมเรียกใช้ พอผมเลือก 2 ไฟล์ เมล์ก็เข้า 2 ฉบับ อยากให้เข้าเพียง 1 ฉบับ เท่านั้น
Tag : PHP

|
|
 |
 |
 |
 |
Date :
2012-01-11 09:04:11 |
By :
beer656 |
View :
961 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คุณเรียกมัน 2 ครั้งหรือเปล่าครับ ถึงเข้า 2 ฉบับ
|
 |
 |
 |
 |
Date :
2012-01-11 11:43:23 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 01
|