Let\'s say we have an image file, stored in a remote server (for example, let\'s take this image), how can we determine (in PHP code) it\'s file size?
If the file wa
Assuming you're worried about the size of the file (not the dimensions of the image), you can grab Content-Length and it will usually work.
If the server on the other end does't supply the header, you'll have no choice but to GET the file, and check its size locally.