-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

tree em
  • 99
  • 3

2 Answers2

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).
Esa Jokinen
  • 46,944
  • 3
  • 83
  • 129
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.

Phill W.
  • 1,479
  • 7
  • 7