Jump to content

implementing a timer in php


bharu4u2007

Recommended Posts

Hi All

I am very new to PHP . I have to implement a timer in a php page that calls or executes certain code after every 5 minutes till that page is opened.

Say i have x.php having few lines of code.

Now I have to implement timer in y.php that calls x.php after every 5 minutes.

How can I acheive this functionality.

 

Any help would be higly appreciated.

 

Thanks in Advance

Bharath

 

 

Link to comment
https://forums.phpfreaks.com/topic/55234-implementing-a-timer-in-php/
Share on other sites

If I cant implement timer in PHP and can acheive by javascript setTimeOut() method ...............

The first argument of setTimeout() will be the statement that needs to be executed with certain delay.

Then can i write few php lines as the first argument in that method?????????

I want to execute php lines rather than java script statements like "alert".

Then can i call php from java script???????

 

 

Please help >:(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.