file描述除了file()返回的是数组,其它的与服务器脚本类/PHP/PHP用户手册/fancy/function.readfile.html">readfile()一样。数组的每个元素对应文件的每一行,而带有换行符。
如果你想在服务器脚本类/PHP/PHP用户手册/fancy/configuration.html#ini.include-path">包含路径中搜索文件,你可以使用可选的第二个参数并把它设置为"1"。
参见服务器脚本类/PHP/PHP用户手册/fancy/function.readfile.html">readfile(), 服务器脚本类/PHP/PHP用户手册/fancy/function.fopen.html">fopen(), 服务器脚本类/PHP/PHP用户手册/fancy/function.fsockopen.html">fsockopen(), 和 服务器脚本类/PHP/PHP用户手册/fancy/function.popen.html">popen(). |