Subversion Repositories qbpwcf-lib(archive)

Rev

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

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