Re: Content-Type header

From: Date: Wed, 31 May 2000 12:55:02 +0000
Subject: Re: Content-Type header
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-143@lists.php.net to get a copy of this message
Christopher Derr wrote: > > Well, after a longer-than-it-should-have-been bout with PHP3-4 > Migration, everything works except one thing... > > At the top of all PHP documents...I get the text: > > Content-Type: > You got to REM all your old PHP3 modules loading in php.ini, like extension=php3_dbm.dll > So where you can edit most of the stuff out, is in the line beginning > with: > > ; As of 4.0b4, PHP always outputs a character encoding by default in > ; the Content-type: header. To disable sending of the charset, simply > ; set it to be empty. > ; PHP's built-in default is text/html > default_mimetype =; > default_charset =; > Those were absolutely painless lines: you see the Content-type headers just because when starting to process your file and before outputing any headers like Content-type and X-Powered-By PHP4 outputs an error message about the fact it can't load old extension file from your php.ini. So this message is considered by a browser as a header, and real headers following that message are considered a beginning of an html document. You got to download new libraries from http://download.swwwing.com/php4/modules -- Stas Trefilov Moscow Russia

« previous php.windows (#143) next »