PHP 中有一個Magic constants(__FILE__)可以取得檔案目錄及檔名. 以/var/www/code/index.php為例. 顯示原始碼 ... dirname取得上層目錄路徑.
確定! 回上一頁