How can I the size of an image file from the URL?

后端 未结 5 2055
天命终不由人
天命终不由人 2020-12-16 20:56

Images and script are hosted on the same account (one site), but we know only the URL of the image.

$image = \"http://example.com/images/full-1091.jpg\"
         


        
5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-16 21:31

    Please Note:

    The result of filesize() function are cached! Use clearstatcache() to clear the cache...

    source: http://www.w3schools.com/php/func_filesystem_filesize.asp

提交回复
热议问题