Re: supress "Content-type" in stand-alone php

From: Date: Fri, 25 Aug 2000 20:05:32 +0000
Subject: Re: supress "Content-type" in stand-alone php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13713@lists.php.net to get a copy of this message
php -q _______________________________________________________________________ GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 _ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more __ On Fri, 25 Aug 2000, mike wright wrote: > Date: Fri, 25 Aug 2000 12:35:06 -0700 > From: mike wright <php@theOrb.net> > To: php-general@lists.php.net > Subject: [PHP] supress "Content-type" in stand-alone php > > Hi All, > > I've compiled PHP 4.0.1RC2 as a stand-alone program and use it > primarily for log-file parsing, file transformation and graphics > generation. However, whenever I use it to "echo" or "print" it sends a > "Content-type: text/html; charset=iso-8859-1" header to stdout. > > I can supress the mime-type and character-encoding by commenting out > these fields in php.ini but am still presented with the partial header > "Content-type:". > > Anybody know how to eliminate this? > > (Aside: I also compile PHP as part of a static Apache build but even > there the header is redundant: within httpd.conf I've included the > "Add-type 'text/html; charset=ISO-8859-1' .html" for HTTP1.x > compliance.) > > Please be sure to copy to sender as well as list. > > Thanks, > Mike Wright > > > -- > 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 (#13713) next »