Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 922 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 922 Rev 953
Line 31... Line 31...
31
*/
31
*/
32
 
32
 
33
#使用命名空間qbpwcf
33
#使用命名空間qbpwcf
34
namespace qbpwcf;
34
namespace qbpwcf;
35
 
35
 
-
 
36
#取得 lib path
-
 
37
exec("php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/folderOfUsrLib.php"),$output,$status);
-
 
38
 
-
 
39
#如果執行失敗
-
 
40
if($status!==0){
-
 
41
 
-
 
42
	#debug
-
 
43
	var_dump($cmd,$ouput,$status);
-
 
44
 
-
 
45
	#結束執行,回傳shell 1.
-
 
46
	exit(1);
-
 
47
 
-
 
48
	}#if end
-
 
49
 
-
 
50
#儲存lib path
-
 
51
$folderOfUsrLib=$output[0];
-
 
52
 
36
#以該檔案的實際位置的 lib path 為 include path 首位
53
#以該檔案的實際位置的 lib path 為 include path 首位
37
exec("cd ".pathinfo(__FILE__)["dirname"]."/../../lib/qbpwcf;pwd;",$output,$status);
54
exec("cd ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../../".$folderOfUsrLib."/qbpwcf);pwd;",$output,$status);
38
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
55
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
39
 
56
 
40
#匯入外部套件
57
#匯入外部套件
41
include("allInOne.php");
58
include("allInOne.php");
42
 
59