function: MySQL_GET_HOST_INFO ()
သက်ဆိုင်သောဗားရှင်း - PHP 4, PHP 5, PHP 7
အသုံးပြုမှု - MySQL_GEget_Host_info () function ကိုလက်ရှိချိတ်ဆက်မှု၏ MySQL host host အချက်အလက်များကိုရရှိရန်အသုံးပြုသည်။
Syntax: String MySQL_Get_host_info ([အရင်းအမြစ် $ link_identifier = null])
Parametermer
ပြန်လာတန်ဖိုး - လက်ရှိဆက်သွယ်မှု MySQL host information ကိုကိုယ်စားပြုသည့် string တစ်ခုကိုပြန်ပို့ပါ။
ဥပမာ - <? PPP // MySQL connection တစ်ခုဖန်တီးပါ $ Link = MySQL_Connect ('localhost', 'userhost' ',' Password '', အကယ်. (! $ link) {Die Die ('ဆက်သွယ်မှုမရှိ' ။ MySQL_ERROR ()); }
// လက်ရှိချိတ်ဆက်ထားသောဒေါ်လာ host_info = MySQL_GET_Host_info ၏ MySQL host information ကိုရယူပါ ($ link); ECHO "MYSQL HOST Info:" ။ $ host_info;
// ဆက်သွယ်မှု MySQL_CLOSE ($ link) ကိုပိတ်ပါ။ ?> Output: MySQL Host Info: TCP / IP မှတဆင့် localhost
မှတ်စုများ