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