Serving a graphic downloads it instead of displaying it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux