函式:fpassthru() |
fpassthru输出所有剩余资料。 语法: int fpassthru(int fp); 传回值: 整数 函式种类: 档案存取
本函式读取档案 fp 直到档尾 (End of file, EOF),并将资料输出到标准输出 (standard output)。若有错误发生,则传回 false 值。而档案 fp 必须由 fopen()、popen() 或 fsockopen() 开启成功的指标。当本函式读完档案,会自动将档案关闭,即 fp 变无效。如果只是要将档案输出到标准输出,可以使用 readfile() 会比用 fopen() 更好。
readfile() fopen() fclose() popen() fsockopen()
|