Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 467 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed


        QBPWCF, Quick Build PHP website Component base on Fedora Linux.
    Copyright (C) 2015~2024 Min-Jhin,Chen

    This file is part of QBPWCF.

    QBPWCF is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    QBPWCF is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with QBPWCF.  If not, see <http://www.gnu.org/licenses/>.

該目錄底下放置可以執行執行的程式

建議重新設置 php include path, 避免以軟連結過來的程式其 include 相關函式出錯.以下為範例:

#以該檔案的實際位置的 lib path 為 include path 首位
#參考資料:
#https://www.php.net/manual/en/function.set-include-path.php
#https://www.php.net/manual/en/function.get-include-path.php
#https://www.php.net/manual/en/function.pathinfo.php
exec("cd ".pathinfo(__FILE__)["dirname"]."/../../;pwd;",$output,$status);
set_include_path($output[0].PATH_SEPARATOR.get_include_path());

#匯入外部套件
include("allInOne.php");