Forum Moderators: coopster

Message Too Old, No Replies

loop a function

         

ayushchd

9:03 am on May 11, 2007 (gmt 0)

10+ Year Member



Can someone tell me, how do i loop a function after every 35 mins? PLzzzzzzzzz

eelixduppy

10:41 am on May 11, 2007 (gmt 0)



You are going to have to use either a cron job [google.com] if you are running linux, or a schedule task [support.microsoft.com] if you are running windows. Create a php script, then run it through the php interpreter every 35 minutes.

Good luck! :)

joelgreen

12:21 pm on May 11, 2007 (gmt 0)

10+ Year Member



Alternatively you could use sleep function. Make sure script does not time out because of max script execution time.

This may help if you need to run function few times. But if you want to run it a lot of times then add a cron job like described above.