RE: [PHP] Time in php problem....

From: Date: Mon, 12 Feb 2001 16:37:32 +0000
Subject: RE: [PHP] Time in php problem....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39227@lists.php.net to get a copy of this message
almost didn't respond to this given the wide dissemination and the broad nature of the question can't be done with any accuracy. you could, create a session or uservariable... have that transmitted with a screen refresh, or anytime your consultant moves within the site resetting an internal timestamp. failure to retransmit via refresh or movement within a specified time would cause expirey, have a function that logs the expirey date and perform your other functions from there (thats the easy part) This doesn't prevent your consultant from keeping a browser window open so that it can refresh. You could use javascipt code on your page with a popup window where your consultant would have to press submt to be logged in as online every so often, but the annoyance factor would be absurd. In short, try pounding out a base from whence to work from... you are likely to get specific responses to specific questions or problems... what you are currently asking for is a prepackaged solutions. Dave -----Original Message----- From: Ng Kok Chun [mailto:ramnkc@yahoo.com] Sent: Tuesday, February 13, 2001 3:11 AM To: php-general@lists.php.net; ts@cape.com; tgolden@checkfreeinvsvcs.com; john@edlabs.com; andre.feld@gmx.de; "mailto:webmaster"@dark-library.com; tomb@atlantic.net Subject: [PHP] Time in php problem.... hi... i need some help... currently i doing web base programming ( econsultant )using php, apache and mysql as well... now i facing a problem which i need : 1) get time when consultant log on 2) get time when consultant log off 3) calculate how long for the specified consultant been log on to the web 4) accumulate all the time everyday 5) then multiple accumulate with working rate ( X ). 6.) finally output to web ( html form ) pls help ! thanks !

« previous php.general (#39227) next »