问题
What does the "-f"
in
say
* * * * * php -f myscript.php
stand for?
回答1:
According to the PHP Command-Line options reference: http://php.net/manual/en/features.commandline.options.php the -f
option indicates which file the PHP engine should execute, in this case myscript.php
.
来源:https://stackoverflow.com/questions/12486686/what-does-f-stand-for-in-php-f-when-running-a-cron-job