php get the KB size of an image
问题 i've been googleing but all i get is getimagesize and filesize. getimagesize dosent get the KB size just width and height which is not what im looking for. filesize give me the message Warning: filesize() [function.filesize]: stat failed for the file in question is 51kb .jpg file $imgsize=filesize("http://localhost/projects/site/schwe/user/1/1.jpg"); does not work, how do i accomplish this? 回答1: You cannot get file size of remote elements, either give a relative path on your system OR do a