setTimeout functionality in PHP ???
Posted: Tue Mar 15, 2005 1:15 am
Hi All,
I have been looking for an solution for this for couple of days, but till now no success.
OS : Windows 2000 Server.
DB : MySQL
PHP : 4.3.4
Is there any function or examples script that can emulate the same functionality as JavaScripts setTimeout() function.
What I need to do is as follows :
Execute an PHP script at predefined intervals...
In my web site, I have registered users logging in. I need to track and store the time they spend on the site using sessions. So for doing this, I need to run an PHP script every 1 minute in the background and log the time and store it in MySQL DB. This has to be done without the user's knowledge and so the page cannot be reloaded or refreshed.
Help is greatly appreciated. Thank You.
Regards,
jAY
I have been looking for an solution for this for couple of days, but till now no success.
OS : Windows 2000 Server.
DB : MySQL
PHP : 4.3.4
Is there any function or examples script that can emulate the same functionality as JavaScripts setTimeout() function.
What I need to do is as follows :
Execute an PHP script at predefined intervals...
In my web site, I have registered users logging in. I need to track and store the time they spend on the site using sessions. So for doing this, I need to run an PHP script every 1 minute in the background and log the time and store it in MySQL DB. This has to be done without the user's knowledge and so the page cannot be reloaded or refreshed.
Help is greatly appreciated. Thank You.
Regards,
jAY