Subversion Repositories php-qbpwcf

Rev

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

Rev 81 Rev 97
Line 28... Line 28...
28
 
28
 
29
#初始化輸出
29
#初始化輸出
30
$output=array();
30
$output=array();
31
 
31
 
32
#取得 lib path
32
#取得 lib path
33
exec("php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../../../usr/bin/libexec/folderOfUsrLib.php"),$output,$status);
33
exec("php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../../../../usr/bin/libexec/folderOfUsrLib.php"),$output,$status);
34
 
34
 
35
#如果執行失敗
35
#如果執行失敗
36
if($status!==0){
36
if($status!==0){
37
 
37
 
38
	#debug
38
	#debug
Line 48... Line 48...
48
 
48
 
49
#初始化輸出
49
#初始化輸出
50
$output=array();
50
$output=array();
51
 
51
 
52
#以該檔案的實際位置的 lib path 為 include path 首位
52
#以該檔案的實際位置的 lib path 為 include path 首位
53
exec("cd ".pathinfo(__FILE__)["dirname"]."/../../../usr/".$folderOfUsrLib."/qbpwcf;pwd;",$output,$status);
53
exec("cd ".pathinfo(__FILE__)["dirname"]."/../../../../usr/".$folderOfUsrLib."/qbpwcf;pwd;",$output,$status);
54
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
54
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
55
 
55
 
56
#匯入套件
56
#匯入套件
57
require_once("allInOne.php");
57
require_once("allInOne.php");
58
 
58