လက်ရှိတည်နေရာ: ပင်မစာမျက်နှာ> ဖန်ရှင်အမျိုးအစားများ> set_include_path

set_include_path

ထည့်သွင်းပါ Changing_path configuration options များ
အမည်:set_include_path
အမျိုးအစား:PHP ရွေးစရာများနှင့်သတင်းအချက်အလက်
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:PHP အတွက်ဖိုင်ရှာဖွေရေးကိုထည့်သွင်းရန်လမ်းကြောင်းကိုသတ်မှတ်ပါ

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

  • $ New_includude_path: ပါ 0 င်မည့်ဖိုင်ရှာဖွေရန်လမ်းကြောင်းကိုအူမကြီးတစ်ခုဖြစ်နိုင်သည် (:) ကွဲကွာ string ကိုသို့မဟုတ်လမ်းကြောင်းများစွာပါ 0 င်သောခင်းကျင်းခြင်း။

Value ကိုပြန်သွားပါ

  • ပါ 0 င်သောဖိုင်ရှာဖွေရေးလမ်းကြောင်းကိုအောင်မြင်စွာသတ်မှတ်ထားပါကရှာဖွေရေးလမ်းကြောင်းအသစ်ကိုပြန်လည်ပေးပို့ပါ။
  • ချိန်ညှိမှုမအောင်မြင်ပါကမှားယွင်းစွာပြန်လာသည်။

ဥပမာ -

  1. လမ်းကြောင်းတစ်ခုတည်းကိုသတ်မှတ်ပါ။
 $path = '/path/to/includes'; $result = set_include_path($path); if ($result !== false) { echo "包含文件搜索路径已设置为: $result"; } else { echo "设置包含文件搜索路径失败"; }
  1. လမ်းကြောင်းများစွာကိုသတ်မှတ်ပါ -
 $paths = array( '/path/to/includes1', '/path/to/includes2', '/path/to/includes3' ); $result = set_include_path(implode(':', $paths)); if ($result !== false) { echo "包含文件搜索路径已设置为: $result"; } else { echo "设置包含文件搜索路径失败"; }
  1. လက်ရှိပါဝင်သောဖိုင်ရှာဖွေရေးလမ်းကြောင်းကိုရယူပါ။
 $currentPath = get_include_path(); echo "当前的包含文件搜索路径为: $currentPath";

မှတ်စုများ

  • ပါ 0 င်သောဖိုင်ရှာဖွေရေးလမ်းကြောင်းကိုတည်ဆောက်သည့်အခါလမ်းကြောင်းတွင်ဆွေမျိုးလမ်းကြောင်းပါ 0 င်ပါကလက်ရှိ script file တည်ရှိရာလမ်းညွှန်နှင့်နှိုင်းယှဉ်ပါက၎င်းကိုခွဲခြမ်းစိတ်ဖြာလိမ့်မည်။
  • အကယ်. set path သည်မမှန်ကန်ပါကသို့မဟုတ်မတည်ရှိပါကဖိုင်အပါအဝင်အမှားတစ်ခုဖြစ်ပေါ်လိမ့်မည်။
  • ပါ 0 င်သောဖိုင်ရှာဖွေရေးလမ်းကြောင်းကိုမသတ်မှတ်ပါကပုံမှန် PHP အားဖြင့်လက်ရှိ script file ကိုတည်ရှိရာလမ်းညွှန်တွင်ရှာဖွေလိမ့်မည်။
သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • လက်ရှိ current_path configuration option ကိုရယူပါ get_include_path

    get_include_path

    လက်ရှိcurrent_pathco
  • လက်ရှိ PHP ဗားရှင်းကိုရယူပါ phpversion

    phpversion

    လက်ရှိPHPဗားရှင်းကို
  • PHP configuration နှင့်ပတ်သက်။ output သတင်းအချက်အလက် phpinfo

    phpinfo

    PHPconfigurationနှင့
  • ဇာတ်ညွှန်း၏အများဆုံးကွပ်မျက်အချိန်ကိုသတ်မှတ်ပါ set_time_limit

    set_time_limit

    ဇာတ်ညွှန်း၏အများဆုံး
  • PHP ပံ့ပိုးသူစာရင်းကိုပုံနှိပ်ပါ phpcredits

    phpcredits

    PHPပံ့ပိုးသူစာရင်းကိ
  • PHP လည်ပတ်နေသော operating system အကြောင်းသတင်းအချက်အလက်များကိုပြန်သွားပါ php_uname

    php_uname

    PHPလည်ပတ်နေသောoperat
  • PHP script ပိုင်ရှင်၏ UID ကိုရယူပါ getmyuid

    getmyuid

    PHPscriptပိုင်ရှင်၏U
  • ပတ်ဝန်းကျင် variable ၏တန်ဖိုးကိုရယူပါ getenv

    getenv

    ပတ်ဝန်းကျင်variable၏
လူကြိုက်များသော ဆောင်းပါးများ