Subversion Repositories php-qbpwcf

Rev

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

Rev 83 Rev 96
Line 35... Line 35...
35
 
35
 
36
#初始化輸出
36
#初始化輸出
37
$output=array();
37
$output=array();
38
 
38
 
39
#取得 lib path
39
#取得 lib path
40
exec("php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../../../../usr/bin/libexec/folderOfUsrLib.php"),$output,$status);
40
exec("php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../../../../../usr/bin/libexec/folderOfUsrLib.php"),$output,$status);
41
 
41
 
42
#如果執行失敗
42
#如果執行失敗
43
if($status!==0){
43
if($status!==0){
44
 
44
 
45
	#debug
45
	#debug
Line 55... Line 55...
55
 
55
 
56
#初始化輸出
56
#初始化輸出
57
$output=array();
57
$output=array();
58
 
58
 
59
#以該檔案的實際位置的 lib path 為 include path 首位
59
#以該檔案的實際位置的 lib path 為 include path 首位
60
exec("cd ".pathinfo(__FILE__)["dirname"]."/../../../../usr/".$folderOfUsrLib."/qbpwcf;pwd;",$output,$status);
60
exec("cd ".pathinfo(__FILE__)["dirname"]."/../../../../../usr/".$folderOfUsrLib."/qbpwcf;pwd;",$output,$status);
61
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
61
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
62
 
62
 
63
#匯入套件
63
#匯入套件
64
require_once("allInOneForSOAP.php");
64
require_once("allInOneForSOAP.php");
65
 
65