PHP Curl script to pull data from remote server every 10 minutes

前端 未结 3 1119
情深已故
情深已故 2021-01-25 21:27

I\'m trying to create a PHP script which pulls xml data (text and images) from a remote server and inserts it in a local database. I need to run this script every 10 minutes or

3条回答
  •  天命终不由人
    2021-01-25 21:56

    Do you know about cron jobs? They're used to schedule periodic tasks like executing scripts from the server.

    http://en.wikipedia.org/wiki/Cron

提交回复
热议问题