I have a php file that needs to be run on a cronjob and the top of it has the following
#!/usr/bin/php -q
i know the first part tells the server to interpret the file with php cause its not being run through the webserver, but what is the -q for?
Also, are there other parameters? If so, where can i read more about them.
Thanks
-qrefers to quiet mode where header information isn’t displayed. This is now on by default but-qis still supported for backward compatability.php -lis the one I use the most. It’s nice, when editing, to be able to run a quick syntax check on a file (in vim,:! php -l %)