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.

Share:
11,409
algorithmicCoder
Author by

algorithmicCoder

Updated on June 04, 2022

Comments

  • algorithmicCoder
    algorithmicCoder almost 2 years

    What does the "-f" in say

    * * * * * php -f myscript.php
    

    stand for?

    • copy
      copy over 11 years
      Do man php and answer yourself
  • Explosion Pills
    Explosion Pills over 11 years
    I think it's also worth noting that if you have only a single php script as the argument, -f does nothing.