how to set cron job from php script?

后端 未结 3 947
Happy的楠姐
Happy的楠姐 2021-02-06 06:02

i am new to cron job . i studied some basics about cron job . i can able to call php using cron tab. By using following command in /etc/crontab

  10 *    * * *           


        
3条回答
  •  悲&欢浪女
    2021-02-06 06:37

    Many environments do not permit writing to a text file from a php page called from the web. I agree that this is a security risk that one should not take.

    I have a webpage save data to a MySQL table via a JQuery call to a php script. In Cron, I schedule another php script to, every so often, check data in MySQL table and execute whatever jobs necessary.

提交回复
热议问题