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

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

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

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

    What do you mean by "a cron job"? On a lot of websites there is a special page like "cron.php" which is hit periodically, normally like so:

    0 * * * * wget http://example.org/cron.php
    

    In which case you just need to manually hit your cron php file to simulate the behaviour.

提交回复
热议问题