Marcelo asked:
I have a php page on my server that does some databes tasks. I need that page to be run every 5 or 10 minutes, how can i get the server to do it?
I have a php page on my server that does some databes tasks. I need that page to be run every 5 or 10 minutes, how can i get the server to do it?


2 Comments to 'How can i have my server run a php script automatically every some minutes?'
March 11, 2010
Add it to your crontab file.
March 12, 2010
crontab would be one way of doing it alternatively you could wrap the whole script in a permament loop and put a sleep of whatever time you require at the end. then run page from the command line and if using linux add the & after the command to keep it running in the background
Leave a comment