Re: header wierdness

From: Date: Sun, 24 Dec 2000 03:41:57 +0000
Subject: Re: header wierdness
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31729@lists.php.net to get a copy of this message
You need to provide more information such as PHP version, OS, web server, etc. This works fine for me on all versions of PHP I use. -Rasmus On Sat, 23 Dec 2000, Marc Swanson wrote: > Hello All, > > I just wrote some code to display thumbnails of images using the compiled in > GD stuff for jpegs and I found that the behavior is not as expected under > Netscape. > > I've tracked the problem down to the fact that the header will contain a > Content-type: text/html when it should contain Content-type: image/jpeg > > I tried using the "header" function as described in the manual to force the > header to image/jpeg but when I examined the header I discovered that it is > STILL trying to print the text/html line (eg there are two Content-type > lines... with text/html being the last one) > > I'm using fpasstrhough to output the raw binary data from the jpeg. Because > of this text/html content-type line Netscape is just puking up the binary > instead of displaying the image. How can I solve this problem?? > > > Thanks! > > > -Marc- > > > -- > 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 (#31729) next »