Fast Remote PHP Technique To Detect Image 404
Posted
by Volomike
on Stack Overflow
See other posts from Stack Overflow
or by Volomike
Published on 2010-04-18T01:42:12Z
Indexed on
2010/04/18
1:43 UTC
Read the original article
Hit count: 492
What PHP script technique runs the fastest in detecting if a remote image does not exist before I include the image? I mean, I don't want to download all the bytes of the remote image -- just enough to detect if it exists.
And while on the subject but with just a slight deviation, I'd like to download just enough bytes to determine a JPEG's width and height information.
Speed is very important in my concern here on this system design I'm working on.
© Stack Overflow or respective owner