set_include_path
ထည့်သွင်းပါ Changing_path configuration options များ
function name: set_include_path ()
သက်ဆိုင်သောဗားရှင်း: PHP ဗားရှင်းအားလုံး
function ကိုဖော်ပြချက် - PHP ၏အွန်လိုင်းဖိုင်ရှာဖွေရေးလမ်းကြောင်းကိုထည့်သွင်းရန် set_include_path () function ကိုအသုံးပြုသည်။ ထည့်သွင်းထားသောဖိုင်ရှာဖွေရေးလမ်းကြောင်းကိုသတ်မှတ်ခြင်းဖြင့်ဖိုင်များအပါအ 0 င်သည့်အခါ PPP ကိုပိုမိုလွယ်ကူစွာအဆင်ပြေစေနိုင်သည်။
syntax: set_includude_path (string $ new_includude_pathathath): String | string
Parametermer
Value ကိုပြန်သွားပါ
ဥပမာ -
$path = '/path/to/includes'; $result = set_include_path($path); if ($result !== false) { echo "包含文件搜索路径已设置为: $result"; } else { echo "设置包含文件搜索路径失败"; }
$paths = array( '/path/to/includes1', '/path/to/includes2', '/path/to/includes3' ); $result = set_include_path(implode(':', $paths)); if ($result !== false) { echo "包含文件搜索路径已设置为: $result"; } else { echo "设置包含文件搜索路径失败"; }
$currentPath = get_include_path(); echo "当前的包含文件搜索路径为: $currentPath";
မှတ်စုများ