Subversion Repositories qbpwcf-lib(archive)

Rev

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

Rev 925 Rev 955
Line 34... Line 34...
34
*/
34
*/
35
 
35
 
36
#指派命名空間
36
#指派命名空間
37
namespace qbpwcf;
37
namespace qbpwcf;
38
 
38
 
-
 
39
#取得 lib path
-
 
40
exec("php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/libexec/folderOfUsrLib.php"),$output,$status);
-
 
41
 
-
 
42
#如果執行失敗
-
 
43
if($status!==0){
-
 
44
 
-
 
45
	#debug
-
 
46
	var_dump(__LINE__,$output);
-
 
47
 
-
 
48
	#結束執行,回傳shell 1.
-
 
49
	exit(1);
-
 
50
 
-
 
51
	}#if end
-
 
52
 
-
 
53
#儲存lib path
-
 
54
$folderOfUsrLib=$output[0];
-
 
55
 
39
#以該檔案的實際位置的 lib path 為 include path 首位
56
#以該檔案的實際位置的 lib path 為 include path 首位
-
 
57
$output=array();
40
exec("cd ".pathinfo(__FILE__)["dirname"]."/../lib/qbpwcf;pwd;",$output,$status);
58
exec("cd ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../".$folderOfUsrLib."/qbpwcf").";pwd;",$output,$status);
-
 
59
 
-
 
60
#如果執行失敗
-
 
61
if($status!==0){
-
 
62
 
-
 
63
	#debug
-
 
64
	var_dump(__LINE__,$output);
-
 
65
 
-
 
66
	#結束執行,回傳shell 1.
-
 
67
	exit(1);
-
 
68
 
-
 
69
	}#if end
-
 
70
 
-
 
71
#設置 include path 
41
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
72
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
42
 
73
 
43
#匯入外部套件
74
#匯入外部套件
44
include("allInOne.php");
75
include("allInOne.php");
45
 
76