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

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 (ht

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 t

[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/) T