Subversion Repositories php-qbpwcf

Rev

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

Rev 219 Rev 226
Line 1... Line 1...
1
        QBPWCF, Quick Build PHP website Component base on Fedora Linux.
1
        QBPWCF, Quick Build PHP website Component base on Fedora Linux.
2
    Copyright (C) 2015~2025 Min-Jhin,Chen
2
    Copyright (C) 2014~2025 MIN ZHI, CHEN
3
 
3
 
4
    This file is part of QBPWCF.
4
    This file is part of QBPWCF.
5
 
5
 
6
    QBPWCF is free software: you can redistribute it and/or modify
6
    QBPWCF is free software: you can redistribute it and/or modify
7
    it under the terms of the GNU General Public License as published by
7
    it under the terms of the GNU General Public License as published by
Line 19... Line 19...
19
檔案目錄結構:
19
檔案目錄結構:
20
 
20
 
21
etc/qbpwcf -dir
21
etc/qbpwcf -dir
22
存放設定檔的路徑
22
存放設定檔的路徑
23
 
23
 
24
usr/bin -dir 
24
usr/bin -dir
25
存放可執行檔
25
存放可執行檔
26
 
26
 
27
/usr/lib/sysusers/php-qbpwcf.conf
27
/usr/lib/sysusers/php-qbpwcf.conf
28
記錄rpm包安裝時需要自動建立的使用者與群組資訊
28
記錄rpm包安裝時需要自動建立的使用者與群組資訊
29
 
29
 
Line 222... Line 222...
222
 
222
 
223
		#回傳結果
223
		#回傳結果
224
		return $result;
224
		return $result;
225
 
225
 
226
		}#if end
226
		}#if end
227
	
227
 
228
	}//function haveArgu end
228
	}//function haveArgu end
229
 
229
 
230
建立不含有必填參數的涵式一開始的寫法可以如下:
230
建立不含有必填參數的涵式一開始的寫法可以如下:
231
 
231
 
232
/*
232
/*
Line 377... Line 377...
377
	#結束執行,回傳shell 1.
377
	#結束執行,回傳shell 1.
378
	exit(1);
378
	exit(1);
379
 
379
 
380
	}#if end
380
	}#if end
381
 
381
 
382
#設置 include path 
382
#設置 include path
383
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
383
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
384
 
384
 
385
#匯入外部套件
385
#匯入外部套件
386
require_once("allInOne.php");
386
require_once("allInOne.php");
387
 
387
 
Line 441... Line 441...
441
 
441
 
442
Autoloading Standard
442
Autoloading Standard
443
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
443
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
444
 
444
 
445
取得函數所接受到的參數數量
445
取得函數所接受到的參數數量
446
http://php.net/manual/en/function.func-num-args.php
-
 
447
446
http://php.net/manual/en/function.func-num-args.php
-
 
447