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

is_executable

ပေးထားသောဖိုင်အမည် executable ရှိမရှိဆုံးဖြတ်ပါ
အမည်:is_executable
အမျိုးအစား:ဖိုင်စနစ်
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:ဖိုင် executable ရှိမရှိဆုံးဖြတ်ပါ။

အဓိပ္ပါယ်နှင့်အသုံးပြုမှု

is_executable() function ကိုသတ်မှတ်ထားသောဖိုင်သည် executable ဟုတ်မဟုတ်စစ်ဆေးသည်။

实例

<? PHP
$ file = "Setup.exe" ;
အကယ်. ( is_executable ( $ file ) )
  {
  ECHO ( " $ file file is executable" ) ;
  }
သို့မဟုတ်
  {
  ECHO ( " $ file file image) မဟုတ်ပါ ) ;
  }
>

输出:

 Setup.exe executable ဖြစ်ပါတယ်

သဒ္ဒါ

 is_executable ( ဖိုင် )
တေးရေး ဖေါ်ပြ
ဖိုင်တဲှ လိုအပ်ပါတယ် စစ်ဆေးရန်စာရွက်စာတမ်းများကိုသတ်မှတ်ပါ။

ဥပမာပြပါ

အကယ်. ဖိုင်တည်ရှိပြီး Executable ဖြစ်လျှင် REENT REESS ။

သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • ဖိုင်များသို့ပြောင်းလဲမှုများ (metadata အပါအ 0 င်) ကိုထပ်တူပြုခြင်း fsync

    fsync

    ဖိုင်များသို့ပြောင်း
  • ပုံစံနှင့်အတူဖိုင်အမည်များကိုကိုက်ညီပါ fnmatch

    fnmatch

    ပုံစံနှင့်အတူဖိုင်အမ
  • ဖိုင်ပိုင်သည့်အုပ်စုကိုပြောင်းလဲပါ chgrp

    chgrp

    ဖိုင်ပိုင်သည့်အုပ်စု
  • ဖိုင်များသို့ရေးရန် (binary files များတွင်လုံခြုံစွာအသုံးပြုသည်) fwrite

    fwrite

    ဖိုင်များသို့ရေးရန်(
  • ဖိုင်၏ inode ပြုပြင်မွမ်းမံအချိန်ကိုရယူပါ filectime

    filectime

    ဖိုင်၏inodeပြုပြင်မွ
  • ဖိုင်ကိုကူးယူပါ copy

    copy

    ဖိုင်ကိုကူးယူပါ
  • configuration ဖိုင်ကိုခွဲခြမ်းစိတ်ဖြာပါ parse_ini_file

    parse_ini_file

    configurationဖိုင်ကိ
  • ပုံမှန်အကြွင်းမဲ့အာဏာလမ်းကြောင်းနာမကိုပြန်ပို့သည် realpath

    realpath

    ပုံမှန်အကြွင်းမဲ့အာဏ
လူကြိုက်များသော ဆောင်းပါးများ