PHP Shell Script
We can use php as a shell script by adding the line below at the top of the php script file.
#!/usr/local/bin/php -Cq
C means do not change working directory to that of the script.
q means do not send HTTP header.
There is a reference manual “Using PHP from the command line” in php.net