How to test a cron job in Local Server like WAMP?

后端 未结 10 2115
一生所求
一生所求 2020-12-31 06:06

How to test a cron job in Local Server like WAMP?

10条回答
  •  执念已碎
    2020-12-31 06:41

    You can just cron your jobs in windows environment with just one line. I have almost spent my 5 hours so i want to share with other is make a task.

    • In program give php.exe path, with my installation it is c:\wamp\bin\php\php5.3.5\php.exe.
    • Second you have to put the file absolute path, which you want to run. -f c:\wamp\www\foo\foo.php in the argument

    So that's complete. There is no need for installing anything.

提交回复
热议问题