Subversion Repositories php-qbpwcf

Rev

Rev 256 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 256 Rev 304
Line 59... Line 59...
59
#建議的log位置
59
#建議的log位置
60
$logFile=$_SERVER["DOCUMENT_ROOT"].$_SERVER["PHP_SELF"].".log";
60
$logFile=$_SERVER["DOCUMENT_ROOT"].$_SERVER["PHP_SELF"].".log";
61
 
61
 
62
#要使用的範例name
62
#要使用的範例name
63
$nameOfSample="20260207";
63
$nameOfSample="20260207";
-
 
64
$nameOfSample="20260313";
64
 
65
 
65
#函式說明:
66
#函式說明:
66
#抓取命令列的參數.
67
#抓取命令列的參數.
67
#回傳結果:
68
#回傳結果:
68
#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
69
#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
Line 146... Line 147...
146
#初始化儲存範例代碼
147
#初始化儲存範例代碼
147
$samples=array();
148
$samples=array();
148
 
149
 
149
#增加 phpLib::updateCopyRightYear 的範例資訊
150
#增加 phpLib::updateCopyRightYear 的範例資訊
150
$samples[]=array("name"=>"20260207","comnent"=>"test run shell on remote");
151
$samples[]=array("name"=>"20260207","comnent"=>"test run shell on remote");
-
 
152
$samples[]=array("name"=>"20260313","comnent"=>"test auto detect remote command to run shell on remote");
151
 
153
 
152
#針對每個範例資訊
154
#針對每個範例資訊
153
foreach($samples as $sample){
155
foreach($samples as $sample){
154
 
156
 
155
	#如果找到對應的範例
157
	#如果找到對應的範例