当前位置: 首页> 函数类别大全> 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
同类函数
  • 建立一个具有唯一文件名的文件  tempnam

    tempnam

    建立一个具有唯一文件名的文件
  • 修改符号链接的所有组  lchgrp

    lchgrp

    修改符号链接的所有组
  • 返回规范化的绝对路径名  realpath

    realpath

    返回规范化的绝对路径名
  • 寻找与模式匹配的文件路径  glob

    glob

    寻找与模式匹配的文件路径
  • 改变文件模式  chmod

    chmod

    改变文件模式
  • 将上传的文件移动到新位置  move_uploaded_file

    move_uploaded_file

    将上传的文件移动到新位置
  • 返回文件系统或磁盘分区上的可用空间  disk_free_space

    disk_free_space

    返回文件系统或磁盘分区上的可用空间
  • 打开进程文件指针  popen

    popen

    打开进程文件指针