[asterisk-users] #!/usr/bin/php -q unknown command

giovanni.v iax at keybits.org
Wed Jan 30 08:43:23 CST 2013


Il 30/01/2013 7.57, Muhammad ha scritto:
> php -h gives me some parameter except -q

The php cli starts silent by default so the -q option isn't required. It 
was kept for compatibility but not sure up to which php version.

It is necessary to stop http headers output if you are using the php-cgi 
binary.

This is the version and help output from php-cgi in my appliance...
[debug!]# /usr/bin/php-cgi -v
PHP 5.3.6 (cgi-fcgi) (built: Jan 19 2013 21:59:29)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

[debug!]# /usr/bin/php-cgi -h
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f <file>]
        php-cgi <file> [args...]
   -a               Run interactively
   -b <address:port>|<port> Bind Path for external FASTCGI Server mode
   -C               Do not chdir to the script's directory
   -c <path>|<file> Look for php.ini file in this directory
   -n               No php.ini file will be used
   -d foo[=bar]     Define INI entry foo with value 'bar'
   -e               Generate extended information for debugger/profiler
   -f <file>        Parse <file>.  Implies `-q'
   -h               This help
   -i               PHP information
   -l               Syntax check only (lint)
   -m               Show compiled in modules
   -q               Quiet-mode.  Suppress HTTP Header output.
^^^^^^             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   -s               Display colour syntax highlighted source.
   -v               Version number
   -w               Display source with stripped comments and whitespace.
   -z <file>        Load Zend extension <file>.
   -T <count>       Measure execution time of script repeated <count> times.


-- 
TeeBX VoIP communication platform (coming soon)
http://code.google.com/p/teebx/
-----------------------------------------------
Lightweight++ Business Friendly++ Open++



More information about the asterisk-users mailing list