How to constantly work with a PHP script on a web hosting?

I have a PHP script that retrieves a list of URLs from a site and stores them in a MYSQL table. I want to run the script again [with some delay] and update the table. I am using frameworkignign framework.

How can i do this?

  • Should I run a cron job?
  • Or do I need to create a start / stop page with an infinte loop?

PS my hosting is GoDaddy

+5
source share
4 answers

The first option would be better:

Should I run a cron job?

Avoid using infinite loops .

+6
source

- cron, - PLENTY, 1, 5, 60 ..

http://www.setcronjob.com/

. "- cron" google, 20.

edit. , , 5 . , .

+2

Cronjob - , .

0

. , .

cronjobs - . script , .

0

All Articles