Re: Status: 204 and PHP's Content-type

From: Date: Wed, 21 Jun 2000 23:09:39 +0000
Subject: Re: Status: 204 and PHP's Content-type
Groups: php.general 
Request: Send a blank email to php-general+get-2544@lists.php.net to get a copy of this message
Addressed to: Timo H <uto@stc.cx> php-general@lists.php.net ** Reply to note from Timo H <uto@stc.cx> Wed, 21 Jun 2000 19:43:10 +0300 > > > Hi, > > Could someone explain to me how to make a script/cgi in php that > prints the "Status: 204 No Content" header, but does *NOT* print the > "Content-type: ..." line. Standard or not, if MSIE 5 can't display > the page right because of the Content-type, this feature's useless > unless someone figures a way around this one.. > > For example; this works as it should: > --(test.cgi) > #!/bin/sh echo "Status: 204" > echo "" > -- ...but in php it doesn't work because php > forces its Content-type to be displayed. > how about: #!/usr/bin/php -q <? echo "Status: 204\n\n"; ?> Rick Widmer Internet Marketing Specialists www.developersdesk.com

« previous php.general (#2544) next »