Calling Functions after a set amount of time??

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
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Calling Functions after a set amount of time??

Post by Jade »

Hey there,

Since Elmseeker hasn't been on lately for me to annoy I have a quick question:

Does anyone know if there is a way to repeatedly call a function after a certain amount of time without refreshing the page? For instance, call a function again after 5 seconds have passed but not have to reoad the page to do it?

Just wondering...might be cool if there was such a thing.

Jade
User avatar
skehoe
Forum Commoner
Posts: 59
Joined: Sun Dec 22, 2002 5:57 am
Location: Denver

Post by skehoe »

You could try a zero pixil iFrame that points to the PHP script and set the meta-refresh tag to exec every 5 seconds... I'm not sure if you can size the Iframes that small, but if it's possible, that might be your best bet.
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Post by Jade »

Thanks,

It works.


Jade
Post Reply