當前位置: 首頁> 函數類別大全> file_exists

file_exists

檢查文件或目錄是否存在
名稱:file_exists
分類:文件系統
所屬語言:php
一句話介紹:檢查文件或目錄是否存在。

實例

<span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">file_exists</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>

輸出:

 1
同類函數
  • 建立符號連接 symlink

    symlink

    建立符號連接
  • 返回文件路徑的信息 pathinfo

    pathinfo

    返回文件路徑的信息
  • 參見unlink() 或unset()(PHP 沒有delete 關鍵詞或函數) delete

    delete

    參見unlink()或unset()(P
  • 取得文件的組 filegroup

    filegroup

    取得文件的組
  • 關閉一個已打開的文件指針 fclose

    fclose

    關閉一個已打開的文件指針
  • 獲取realpath 緩存條目 realpath_cache_get

    realpath_cache_get

    獲取realpath緩存條目
  • fwrite 的別名 fputs

    fputs

    fwrite的別名
  • 判斷給定文件名是否為一個符號連接 is_link

    is_link

    判斷給定文件名是否為一個符號連接