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

Muhammad mohammad.ghazavi at gmail.com
Wed Jan 30 14:07:53 CST 2013


[SOLVED]

I made my code in windows and run it in linux, so my new line in windows is
\r\n. I changed it to \n. it's work.

On Wed, Jan 30, 2013 at 6:13 PM, giovanni.v <iax at keybits.org> wrote:

> 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/ <http://code.google.com/p/teebx/>
> ------------------------------**-----------------
> Lightweight++ Business Friendly++ Open++
>
>
> --
> ______________________________**______________________________**_________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/**mailman/listinfo/asterisk-**users<http://lists.digium.com/mailman/listinfo/asterisk-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130130/d60659fe/attachment.htm>


More information about the asterisk-users mailing list