Subversion Repositories php-qbpwcf

Rev

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

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