how to verify image and not http error is returned to browser

From: Date: Thu, 10 Mar 2005 20:26:32 +0000
Subject: how to verify image and not http error is returned to browser
Groups: php.general 
Request: Send a blank email to php-general+get-210469@lists.php.net to get a copy of this message
Hi. I want to include an image on my home page that is dynamically created from another website. The source code on a typical HTML page would be <img src="http://www.othersite.com/returnedimage.aspx"> I don't trust their server will always be up/respond, so I want to use a PHP function to determine whether a GIF has been returned (oppsed to an HTTP error) before sending it to the browser. Any recommendations how to do this? Thanks, Cindy

« previous php.general (#210469) next »