Subversion Repositories php-qbpwcf

Rev

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

Rev 48 Rev 137
Line 538... Line 538...
538
		#運行curl cmd
538
		#運行curl cmd
539
		#回傳結果:
539
		#回傳結果:
540
		#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
540
		#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
541
		#$result["error"],錯誤訊息陣列.
541
		#$result["error"],錯誤訊息陣列.
542
		#$result["function"],當前執行的函式名稱.
542
		#$result["function"],當前執行的函式名稱.
-
 
543
		#$result["founded"],識別網址找不找得到.
543
		#$result["content"],取得的回應內容.
544
		#$result["content"],取得的回應內容陣列;若$conf["bgInProc"]為"true",則每個元素為其指令執行的結果訊息陣列,key為"status"代表執行是否正常的識別;key為"statusCode"代表程式結束後回傳給對應executeBy程式的數值;key為"output"代表標準輸出,若為resource,則代表為pipe;key為"error"代表非標準輸出,若為resource,則代表為pipe;key為"input"代表成功輸入的指令;key為"process"代表該程序經proc_open後的process source;key為"proc_get_status"代表程序的資訊.
-
 
545
		#$result["fullContent"],取得回應的完整字串內容.
544
		#$result["cookie"],cookie檔案的位置與名稱.
546
		#$result["cookie"],cookie檔案的位置與名稱.
545
		#$result["cmd"],執行的command.
547
		#$result["cmd"],執行的command.
546
		#$result["argu],使用的參數.
548
		#$result["argu],使用的參數.
547
		#必填參數:
549
		#必填參數:
548
		#$conf["url"],字串,目標url.
550
		#$conf["url"],字串,目標url.
Line 582... Line 584...
582
			return $result;
584
			return $result;
583
 
585
 
584
			}#if end
586
			}#if end
585
 
587
 
586
		#取得伺服器對外的IP
588
		#取得伺服器對外的IP
587
		$result["content"]=$curlCmd["content"];
589
		$result["content"]=$curlCmd["fullContent"];
588
 
590
 
589
		#設置執行正常
591
		#設置執行正常
590
		$result["status"]="true";
592
		$result["status"]="true";
591
 
593
 
592
		#回傳結果
594
		#回傳結果