RE: [PHP] #!/usr/bin/php appears in the output
| From: | Michael Geier | Date: | Wed, 07 Aug 2002 22:08:02 +0000 |
| Subject: | RE: [PHP] #!/usr/bin/php appears in the output | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111586@lists.php.net to get a copy of this message | ||
Having it appear at the beginning of generated output is unfortunate, but is
EXACTLY what is supposed to happen...
The PHP CGI module has flags that can be passed to it, just like any other
shell.
run 'php -h ' on your system to see the results (-q is right up at the top;
it was built this way)
# php -v
4.2.2
# 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.
-w Display source with stripped comments and whitespace.
-f <file> Parse <file>. Implies `-q'
-v Version number
-C Do not chdir to the script's directory
-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)
-m Show compiled in modules
-i PHP information
-h This help
I do not claim to understand why someone posted this as a bug, or that this
was fixed in CVS...there is really nothing to fix.
Maybe one of the PHP developers can elaborate.
---
Michael Geier
CDM Sports, Inc., Systems Administration
(0> email: operations@cdmsports.com
//\ phone: 314.991.1511 x 6505
V_/_ pager: 314.318.9414 || page-michael@cdmsports.com
> -----Original Message-----
> From: Ford, Mike [LSS] [mailto:M.Ford@lmu.ac.uk]
> Sent: Wednesday, August 07, 2002 4:21 PM
> To: 'Michael Geier '
> Subject: RE: [PHP] #!/usr/bin/php appears in the output
>
>
> -----Original Message-----
> From: Michael Geier
> To: Ford, Mike [LSS]
>
> this is hardly a bug...
>
> #!/path/to/php -q
>
> --------------------------
>
> Having it appear at the beginning of your generated output is!
> And that bug
> is recorded in the bug database -- just search at
> http://bugs.php.net for
> shebang.
>
> Cheers!
>
> Mike
>