RE: [PHP] Internet Explorer & Images (Header() Question)

From: Date: Sat, 09 Dec 2000 04:44:37 +0000
Subject: RE: [PHP] Internet Explorer & Images (Header() Question)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29462@lists.php.net to get a copy of this message
Oops, should have specified the images are being retrieved via some mod_rewrite magic, with the resulting url being: http://domain.com/img/image0.gif So to the browser they should look just like static content. > -----Original Message----- > From: Richard Lynch [mailto:richard@zend.com] > Sent: Saturday, 9 December 2000 3:09 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Internet Explorer & Images (Header() Question) > > > Have the URL they used to get to the image end in "image0.gif" > > EG: > http://yourserver.com/whatever.php/image0.gif?filename=image0.gif > > Yes, I know. It looks goofy as hell. > > That's IE for you. > > ----- Original Message ----- > From: "Mark Lipscombe" <mark@itgarp.com> > Newsgroups: php.general > Sent: Thursday, December 07, 2000 11:18 PM > Subject: [PHP] Internet Explorer & Images (Header() Question) > > > > Hi > > > > I know this is off-topic, but never-the-less I'm hoping someone > > can help me > > anyway. > > > > Can any tell me what headers I need to send to make IE realise > > that an image > > i'm sending from the database is really of the type it is, and > I specify? > > > > I'm currently sending the following headers: > > > > HTTP/1.1 200 OK > > Date: Fri, 08 Dec 2000 04:57:19 GMT > > Server: Apache/1.3.14 (Unix) mod_perl/1.24_01 PHP/4.0.3pl1 mod_ssl/2.7.1 > > OpenSSL/0.9.5a > > Pragma: no-cache > > Cache-control: no-cache > > Content-Disposition: inline; filename=image0.gif > > Content-Length: 56117 > > Connection: close > > Content-Type: image/gif > > Expires: Fri, 08 Dec 2000 04:57:19 GMT > > > > And IE insists that the image i'm trying to send it is a bitmap > and should > > be saved as untitled.bmp > > > > The image is definately a GIF, as when I save it and run 'file > image0.gif' > > it says it's a GIF, as does 'identify' from the ImageMagick package. > > > > Thanks in advance, > > Mark > > > > -- > > > > "Before man reaches the moon, your mail will be delivered within hours > > from New York to California, from England to India, by guided > missile. We > > stand on the threshold of rocket mail." > > - Arthur Summerfield, US Postmaster General, 23 June 1959 > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#29462) next »