Bun*_*ole 2 php file
我需要检查与脚本在同一文件夹中的文件是否存在且是否大于100字节,如果是,那么echo"就在那里".
Win*_*ter 8
我相信你正试图做这样的事情:
$filename = 'test.txt'; if (file_exists($filename) && filesize($filename) > 100) { echo "is there"; } else { echo "not there"; }
阅读filesize和file_exists的PHP文档,以获得更深入的解释.
归档时间:
12 年,3 月 前
查看次数:
4879 次
最近记录:
11 年,7 月 前