-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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.