douju2331 2013-03-02 08:14
浏览 76
已采纳

crontabs中的标志是什么意思?

I have this line in my crontab:

0 0 * * * /usr/local/bin/php5 -d allow_url_fopen=on -f /path/to/file.php

I cannot find any comprehensive reference on the meaning of the "-d" and "-f" flags. What do they mean? And is there a page that explains these and other flags?

  • 写回答

2条回答 默认 最新

  • douzuan2814 2013-03-02 08:19
    关注

    From PHP manual:

    -d foo[=bar]     Define INI entry foo with value 'bar'
    -f <file>        Parse and execute <file>.
    

    So this means that file /path/to/file.php should be executed with allow_url_fopen option set on.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?