Re: [PHP] Serving a graphic downloads it instead of displaying it

2006-06-19 Thread Brian Dunning

On Jun 17, 2006, at 12:06 PM, a couple of guys wrote:


header(Content-type: image/jpeg);
notice jpeg - not jpg.


Thanks all - this was indeed the problem.  :)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Serving a graphic downloads it instead of displaying it

2006-06-17 Thread Frank Arensmeier

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
[EMAIL PROTECTED]
www.nikehydraulics.se

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Serving a graphic downloads it instead of displaying it

2006-06-16 Thread Brian Dunning

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



Re: [PHP] Serving a graphic downloads it instead of displaying it

2006-06-16 Thread Richard Lynch
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Serving a graphic downloads it instead of displaying it

2006-06-16 Thread 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