实例说明:<?php //check filesize echo filesize("test.txt"); echo "<br />"; $file = fopen("test.txt", "a+&qu...
实例说明:<?php $file = fopen("test.txt","w"); echo fwrite($file,"Hello World. Testing!"); fclose($file); ?>标签含义:fw...
实例说明:<?php print_r(glob("*.txt")); ?>标签含义:glob:函数返回一个包含匹配指定模式的文件名或目录的数组。该函数返回一个包含有匹配文件/目录的数组。如果失败则返回 FALSE。源代码运行结果如下:Array ( [0] =...
实例说明:<?php $file = "images"; if(is_dir($file)) { echo ("$file is a directory"); } else { echo ("$file is not a dir...
实例说明:<?php $file = "setup.exe"; if(is_executable($file)) { echo ("$file is executable"); } else { echo ("$file is...
实例说明:<?php $file = "test.txt"; if(is_file($file)) { echo ("$file is a regular file"); } else { echo ("$file is not...
实例说明:<?php $link = "images"; if(is_link($link)) { echo ("$link is a link"); } else { echo ("$link is not a link&qu...
实例说明:<?php $file = "test.txt"; if(is_readable($file)) { echo ("$file is readable"); } else { echo ("$file is not r...
实例说明:<?php $file = "test.txt"; if(is_uploaded_file($file)) { echo ("$file is uploaded via HTTP POST"); } else { echo (&...
实例说明:<?php $file = "test.txt"; if(is_writeable($file)) { echo ("$file is writeable"); } else { echo ("$file is not...