这样也可以
$filename = 'https://www.imooc.com/static/sea_config.js?v=201712141617'; $size = filesize($filename); $size = getsize($size, 'kb'); //进行单位转换 echo $size.'kb';
$filename = 'https://www.imooc.com/static/sea_config.js?v=201712141617'; $size = filesize($filename); $size = getsize($size, 'kb'); //进行单位转换 echo $size.'kb';
2018-11-26
举报