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

后端 未结 5 2041
天命终不由人
天命终不由人 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:41

    Images and script hosted on the same account (one site).

    Then don't use a URL: Use the direct file path and filesize().

提交回复
热议问题