Server Up-time

From: Date: Sun, 02 Feb 2003 15:48:56 +0000
Subject: Server Up-time
Groups: php.general 
Request: Send a blank email to php-general+get-134002@lists.php.net to get a copy of this message
Hi, As a novelty item on a website I have made a few lines of code for showing how in hours minuts and secoinds since the server was booted up (using C:\php\php.exe -q E:\...\set_boot_time.php value under the Run section in the Windows Registry.). The system by running a script at bootup that sets the time() value to an empty a file called 'boot.time'. All the website has to do then is access the 'boot.time' file and obtain the value. Subtract the 'boot.time' value from the time() value and there you have it, the rest is just formating. This method works perfectly adiquatly. I was just wondering is there is an easyer way to achieve this? Anyone know of one. Thanx Josh. (Project Mp3x)

« previous php.general (#134002) next »