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

readfile

输出文件
名称:readfile
分类:文件系统
所属语言:php
一句话介绍:读取一个文件,并输出到输出缓冲。

实例

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

输出:

There are two lines in this file.
This is the last line.
57
同类函数
  • 倒回文件指针的位置  rewind

    rewind

    倒回文件指针的位置
  • 参见 unlink() 或 unset()(PHP 没有 delete 关键词或函数)  delete

    delete

    参见unlink()或unset()(P
  • 修改符号链接的所有者  lchown

    lchown

    修改符号链接的所有者
  • is_writable 的别名  is_writeable

    is_writeable

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

    fgetss

    从文件指针中读取一行并过滤掉HTML标记
  • 获取文件权限  fileperms

    fileperms

    获取文件权限
  • 解析一个配置文件  parse_ini_file

    parse_ini_file

    解析一个配置文件
  • 获取 realpath 缓存条目  realpath_cache_get

    realpath_cache_get

    获取realpath缓存条目
热门文章