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 \[code\]$imgsize=filesize("http://localhost/projects/site/schwe/user/1/1.jpg");\[/code\]does not work,how do i accomplish this?
 
Back
Top