Re: supress "Content-type" in stand-alone php
| From: | Lars Torben Wilson | Date: | Fri, 25 Aug 2000 19:54:39 +0000 |
| Subject: | Re: supress "Content-type" in stand-alone php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13710@lists.php.net to get a copy of this message | ||
mike wright writes:
> 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
shanna% ./php -h
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>] | {<file> [args...]}
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-f<file> Parse <file>. Implies `-q'
-v Version number
-c<path> Look for php.ini file in this directory
-a Run interactively
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-z<file> Load Zend extension <file>.
-l Syntax check only (lint)
-i PHP information
-h This help
Cheers,
Torben
--
+----------------------------------------------------------------+
|Torben Wilson <torben@php.net> Netmill iTech|
|http://www.coastnet.com/~torben http://www.netmill.fi|
|Ph: 1 250 383-9735 torben@netmill.fi|
+----------------------------------------------------------------+