当前位置: 首页> 函数类别大全> filesize

filesize

获取文件大小
名称:filesize
分类:文件系统
所属语言:php
一句话介绍:返回文件大小。

实例

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

输出:

20
同类函数
  • 输出文件  readfile

    readfile

    输出文件
  • 清除文件状态缓存  clearstatcache

    clearstatcache

    清除文件状态缓存
  • 通过已打开的文件指针取得文件信息  fstat

    fstat

    通过已打开的文件指针取得文件信息
  • 提供有关文件的信息  stat

    stat

    提供有关文件的信息
  • 判断给定的文件名是否可写  is_writable

    is_writable

    判断给定的文件名是否可写
  • is_writable 的别名  is_writeable

    is_writeable

    is_writable的别名
  • 从文件指针中读取一行并过滤掉 HTML 标记  fgetss

    fgetss

    从文件指针中读取一行并过滤掉HTML标记
  • disk_free_space 的别名  diskfreespace

    diskfreespace

    disk_free_space的别名
热门文章