What does -f stand for in "php -f" when running a cron job?
11,409
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
.
Author by
algorithmicCoder
Updated on June 04, 2022Comments
-
algorithmicCoder almost 2 years
What does the
"-f"
in say* * * * * php -f myscript.php
stand for?
-
copy over 11 yearsDo
man php
and answer yourself
-
-
Explosion Pills over 11 yearsI think it's also worth noting that if you have only a single php script as the argument,
-f
does nothing.