Re: Serving a graphic downloads it instead of displaying it

From: Date: Sat, 17 Jun 2006 19:06:43 +0000
Subject: Re: Serving a graphic downloads it instead of displaying it
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-238197@lists.php.net to get a copy of this message
Maybe it is not essential, but shouldn't it say: header("Content-type: image/jpeg"); notice "jpeg" - not "jpg". /frank 16 jun 2006 kl. 22.15 skrev Mariano Guadagnini:
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 --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
---------------------------------- Frank Arensmeier Marketing Support & Webmaster NIKE Hydraulics AB Box 1107 631 80 Eskilstuna Sweden phone +46 - (0)16 16 82 34 fax +46 - (0)16 13 93 16 frank.arensmeier@nikehydraulics.se www.nikehydraulics.se

« previous php.general (#238197) next »