实例说明:<?php $file = fopen("test.txt","r+"); // some code fflush($file); ?>标签含义:fflush() 函数向打开的文件写入所有的缓冲输出。如果成功则返回 TRUE,如果...
实例说明:<?php $file = fopen("test.txt", "r"); //Output a line of the file until the end is reached while(! feof($file)) { ech...
实例说明:<?php $file = fopen("test.txt","r"); //some code to be executed fclose($file); ?>标签含义:fclose() 函数关闭打开的文件。该函数如果成功则返回...
实例说明:<?php echo disk_total_space("C:"); ?>标签含义:disk_total_space() 函数返回指定目录的磁盘总容量,以字节为单位。源代码运行结果如下:119990349824...
实例说明:<?php echo disk_free_space("C:"); ?>标签含义:disk_free_space:函数返回指定目录的可用空间,以字节为单位。directory:必需,规定要检查的目录源代码运行结果如下:109693288448...
实例说明:<?php echo dirname("c:/testweb/home.php") . "<br />"; echo dirname("/testweb/home.php"); ?>标签含义:dirn...
实例说明:<?php echo copy("source.txt","target.txt"); ?>标签含义:copy:函数复制文件。该函数如果成功则返回 TRUE,如果失败则返回 FALSE源代码运行结果如下:1...
实例说明:<?php //check filesize echo filesize("test.txt"); echo "<br />"; $file = fopen("test.txt", "a+&qu...
实例说明:<?php chown("test.txt","charles") ?>标签含义:chown:函数改变指定文件的所有者。如果成功则返回 TRUE,如果失败则返回 FALSE。file:必需。规定要检查的文件。owner:必需。规定新的...
实例说明:<?php // Read and write for owner, nothing for everybody else chmod("test.txt",0600); // Read and write for owner, read for every...