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

file_get_contents

ဖိုင်တစ်ခုလုံးကို string တစ်ခုထဲသို့ဖတ်ပါ
အမည်:file_get_contents
အမျိုးအစား:ဖိုင်စနစ်
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:ဖိုင်ကို string တစ်ခုထဲသို့ဖတ်ပါ။

实例

<span class="token php language-php"><span class="token delimiter important"><? PHP</span>
<span class="token keyword">echo</span> <span class="token function">file_get_contents</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"test.txt"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">></span></span>

输出:

 ဤသည်စမ်းသပ်မှုစာသားနှင့်အတူစမ်းသပ်ဖိုင်ဖြစ်ပါတယ်။
သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • ဖိုင်စနစ်သို့မဟုတ် disk partition ကိုစုစုပေါင်းအရွယ်အစားကိုပြန်ပို့သည် disk_total_space

    disk_total_space

    ဖိုင်စနစ်သို့မဟုတ်di
  • ဖိုင်ပိုင်ရှင်ကိုရယူပါ fileowner

    fileowner

    ဖိုင်ပိုင်ရှင်ကိုရယူ
  • ဖိုင်များကိုဖျက်ပါ unlink

    unlink

    ဖိုင်များကိုဖျက်ပါ
  • Open Process ဖိုင်ညွှန်ပြ popen

    popen

    OpenProcessဖိုင်ညွှန
  • ဒေတာ (သို့သော် Metadata မဟုတ်) ဖိုင်တစ်ခုသို့ synchronize လုပ်ပါ fdatasync

    fdatasync

    ဒေတာ(သို့သော်Metadat
  • File Status Cache Cache clearstatcache

    clearstatcache

    FileStatusCacheCache
  • ဖိုင်ကိုညွှန်ပြသည့်နေရာကိုဖတ် / ရေးရန်နေရာကိုပြန်ပို့သည် ftell

    ftell

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

    stat

    စာရွက်စာတမ်းအကြောင်း