getimagesize will work on remote files - fopen will not (short of using sockets/ftp access)
just use @getimagesize('http://......') and test that $return is not equal to zero (zero means it is not an image).
note: it would not work on gifs or on images protected by a direct linking protection script.
images php coding issues or problems here.
1 post • Page 1 of 1