Does getimagesize use an extra HTTP request or can it find out the size remotely?
NOTE: The image is external
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There will always be at least one HTTP request; otherwise how will it know what you’re looking for?
If you’re asking whether or not it’ll download the file – yes, it will. There’s no HTTP header that specifies image dimensions, so it doesn’t know until the file is downloaded.