Or simply use Zend_Validate_File_IsImage which is much saver than relying on client data.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "drm" <[email protected]>
To: "Nabble Zend Framework General" <[email protected]>
Sent: Friday, January 15, 2010 12:10 PM
Subject: Re: [fw-general] Check if an image exists on remote server


Hi Joost,

Thanks, Zend_Http_Client works!

I try to do a request and catch the exception if no connetction could be
made. Then I check the Content-type header to detemine if thsi is an image.


Consider implementing and contributing a Zend_Validate validator for
this. I'm sure others will find it useful.

Gerard


Reply via email to