当前位置: 首页> 函数类别大全> 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
同类函数
  • fwrite 的别名  fputs

    fputs

    fwrite的别名
  • 返回文件指针读/写的位置  ftell

    ftell

    返回文件指针读/写的位置
  • 将上传的文件移动到新位置  move_uploaded_file

    move_uploaded_file

    将上传的文件移动到新位置
  • 打开进程文件指针  popen

    popen

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

    disk_free_space

    返回文件系统或磁盘分区上的可用空间
  • 改变文件所属的组  chgrp

    chgrp

    改变文件所属的组
  • 关闭一个已打开的文件指针  fclose

    fclose

    关闭一个已打开的文件指针
  • disk_free_space 的别名  diskfreespace

    diskfreespace

    disk_free_space的别名
热门文章