-2

I look at some php script in centos,I notice there is #!/usr/bin/php -q

What is the meaning of this option? because I cannot see it in php --help

2 Answers 2

2

The manpage for php(1) describes this option, and it is also documented in the PHP Manual; Command line options:

Option Long Option Description
-q --no-header Quiet-mode. Suppress HTTP header output (CGI only).
0

The line itself is known as a "shebang" or, more formally, an Interpreter Directive.
It tells the shell which interpreter (and options) to use to process [the rest of] the script.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .