Re: Serving a graphic downloads it instead of displaying it

From: Date: Fri, 16 Jun 2006 20:15:46 +0000
Subject: Re: Serving a graphic downloads it instead of displaying it
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-238172@lists.php.net to get a copy of this message
Brian Dunning wrote:
I'm trying to serve up a jpeg like this: header("Content-type: image/jpg"); readfile('images/banner-ad.jpg'); It works on other browsers, but on Safari it downloads the graphic like a file, rather than displaying it. What's up with that???? --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 16/06/2006 Maybe you can try to embed the image in a blank html, inside <img> tag for example, to show only the image you want.
-- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 16/06/2006

« previous php.general (#238172) next »