Fire function at intervals?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sleepydad
Forum Commoner
Posts: 75
Joined: Thu Feb 21, 2008 2:16 pm

Fire function at intervals?

Post by sleepydad »

I have written a function that I would like to fire off every three minutes. Is there a way to do this without using a javascript page refresh? I'll have some videos and interactive content on the site that I'm afraid a page refresh would interfere with.

Thanks in advance -
sleepydad
User avatar
Kastor
Forum Newbie
Posts: 24
Joined: Thu May 01, 2008 2:29 am
Location: Grodno, Belarus
Contact:

Re: Fire function at intervals?

Post by Kastor »

on server side use cron (unix/linux)
on client site use js (timeout_id = window.setTimeout(func|code, delay))
Post Reply