Subversion Repositories php-qbpwcf

Rev

Rev 226 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 226 Rev 237
Line 62... Line 62...
62
$logFile=$_SERVER["DOCUMENT_ROOT"].$_SERVER["PHP_SELF"].".log";
62
$logFile=$_SERVER["DOCUMENT_ROOT"].$_SERVER["PHP_SELF"].".log";
63
 
63
 
64
#要使用的範例name
64
#要使用的範例name
65
$nameOfSample="20250615";
65
$nameOfSample="20250615";
66
#$nameOfSample="20250630";
66
#$nameOfSample="20250630";
-
 
67
#$nameOfSample="20250704";
-
 
68
$nameOfSample="20260104";
67
 
69
 
68
#函式說明:
70
#函式說明:
69
#抓取命令列的參數.
71
#抓取命令列的參數.
70
#回傳結果:
72
#回傳結果:
71
#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
73
#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
Line 156... Line 158...
156
 
158
 
157
#增加  mail::pear_smtp_send 的範例資訊
159
#增加  mail::pear_smtp_send 的範例資訊
158
$samples[]=array("name"=>"20250615","comnent"=>"test send mail");
160
$samples[]=array("name"=>"20250615","comnent"=>"test send mail");
159
$samples[]=array("name"=>"20250630","comnent"=>"tets send mail to gmail");
161
$samples[]=array("name"=>"20250630","comnent"=>"tets send mail to gmail");
160
$samples[]=array("name"=>"20250704","comnent"=>"tets send GPG signed mail");
162
$samples[]=array("name"=>"20250704","comnent"=>"tets send GPG signed mail");
-
 
163
$samples[]=array("name"=>"20260104","comnent"=>"tets send GPG signed mail with attachment");
161
 
164
 
162
#針對每個範例資訊
165
#針對每個範例資訊
163
foreach($samples as $sample){
166
foreach($samples as $sample){
164
 
167
 
165
	#如果找到對應的範例
168
	#如果找到對應的範例