Reminder Interval?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
soclose
Forum Newbie
Posts: 19
Joined: Tue Nov 10, 2009 12:43 am

Reminder Interval?

Post by soclose »

Hi All,
I'm a novice in PHP and web development. My previous experience is in window application with C#.NET. Here, I'd like to know more about this statement below :

With the field Reminder Interval you define how often your browser will check for pending events.

It means that programmer can code our web browser (eg IE, Mozilla) to check for pending events every user defined time, is it? I get confused all user action is immediately done by web browser, is it? So why do we need to add Reminder Interval field value?

pls explain this statement more.
User avatar
JNettles
Forum Contributor
Posts: 228
Joined: Mon Oct 05, 2009 4:09 pm

Re: Reminder Interval?

Post by JNettles »

Is this possibly a javascript timer where it performs an Ajax request checking for new information?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Reminder Interval?

Post by califdon »

That definitely applies to Javascript, not to PHP. PHP is executed at the server, before anything is sent to the browser, so of course, it cannot do something based on what happens in the browser. What uses could a Javascript timer serve? It depends entirely on what is desired. If it's a game programmed in Javascript, it could be a time-out. If you would like an image on a web page to refresh with a different image every x seconds, you could use it. As the other responder noted, you could have a page send an Ajax request to the server for new data every 2 minutes, etc. etc. etc. etc.
Post Reply