如果您嘗試在 include 路徑中尋找檔案,有一個更好的方法:https://php.dev.org.tw/manual/en/function.stream-resolve-include-path.php
(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)
get_include_path — 取得目前的 include_path 設定選項
此函式沒有參數。
回傳路徑字串,或在失敗時回傳 false
。
範例 #1 get_include_path() 範例
<?php
echo get_include_path();
// 或使用 ini_get()
echo ini_get('include_path');
?>
如果您嘗試在 include 路徑中尋找檔案,有一個更好的方法:https://php.dev.org.tw/manual/en/function.stream-resolve-include-path.php