php获得文件大小
php获得文件大小 [代码片段(6行)]
<?php
$file = 'data.txt';
$bytes = filesize('$file');
echo 'File '.basename($file).' is $bytes bytes, or '.round($bytes / 1024, 2).' kilobytes.';
?>
- 上一篇:php class定义
- 下一篇:pc100 php如何抓取网页中邮箱地址代码
精彩图集
精彩文章






