Subversion Repositories php-qbpwcf

Rev

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

Rev 3 Rev 148
Line 23... Line 23...
23
*/
23
*/
24
 
24
 
25
#宣告命名空間
25
#宣告命名空間
26
namespace qbpwcf;
26
namespace qbpwcf;
27
 
27
 
28
#取得 lib path
28
#取得 lib folder
29
exec("php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/libexec/folderOfUsrLib.php"),$output,$status);
29
exec("php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/libexec/folderOfUsrLib.php"),$output,$status);
30
 
30
 
31
#如果執行失敗
31
#如果執行失敗
32
if($status!==0){
32
if($status!==0){
33
 
33
 
Line 37... Line 37...
37
	#結束執行,回傳shell 1.
37
	#結束執行,回傳shell 1.
38
	exit(1);
38
	exit(1);
39
 
39
 
40
	}#if end
40
	}#if end
41
 
41
 
42
#儲存lib path
42
#儲存 lib folder
43
$folderOfUsrLib=$output[0];
43
$folderOfUsrLib=$output[0];
44
 
44
 
45
#以該檔案的實際位置的 lib path 為 include path 首位
45
#以該檔案的實際位置的 lib path 為 include path 首位
46
$output=array();
46
$output=array();
47
exec("cd ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../".$folderOfUsrLib."/qbpwcf").";pwd;",$output,$status);
47
exec("cd ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../".$folderOfUsrLib."/qbpwcf").";pwd;",$output,$status);