[PHP] how to get a size (length) of a remote file/webpage without downloading it?

Daniel X

New member
I tried some curl actions, but all _download_ entire file before checking its size. I want to be able just to check a file size (remote http) and if it is too big then return error but I want to do that BEFORE php/curl download entire file.
any ideas?
 
Back
Top