現在の位置: ホーム> 関数カテゴリ一覧> 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
類似の関数
  • ファイルシステムまたはディスクパーティションの合計サイズを返します disk_total_space

    disk_total_space

    ファイルシステムまたはディスクパーティシ
  • ファイルをコピーします copy

    copy

    ファイルをコピーします
  • 指定されたファイル名が通常のファイルであるかどうかを判断します is_file

    is_file

    指定されたファイル名が通常のファイルであ
  • ファイルを特定の長さに切り捨てます ftruncate

    ftruncate

    ファイルを特定の長さに切り捨てます
  • シンボリックリンクの所有者を変更します lchown

    lchown

    シンボリックリンクの所有者を変更します
  • 実際のパスバッファーのサイズを取得します realpath_cache_size

    realpath_cache_size

    実際のパスバッファーのサイズを取得します
  • stream_set_write_bufferのエイリアス set_file_buffer

    set_file_buffer

    stream_set_write_buf
  • ディレクトリを削除します rmdir

    rmdir

    ディレクトリを削除します