Re: Serving a graphic downloads it instead of displaying it

From: Date: Fri, 16 Jun 2006 20:35:45 +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-238171@lists.php.net to get a copy of this message
On Fri, June 16, 2006 9:30 am, 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???? Perhaps the image file itself is not quite a kosher JPEG, and Safari is getting confused?... What happens when Safari surfs directly to images/banner-ad.jpg ? -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#238171) next »