Subversion Repositories php-qbpwcf

Rev

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

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