That is one of the most incomprehensible sentences I've read in a long time.
My suggestion is to have a program on your computer at home update a row in a database running on the web server using the mySQL UNIX_TIMESTAMP() command. The uptime script would then simply query the row and compare the value stored to the current value of time() [in PHP] and then if the stored value is older than a certain time (30 secs, maybe?) then the computer should be marked as down. Otherwise, display the uptime as of the last update, which presumably is stored as another long integer in the database.
__________________ Desktop machine: 2 x Opteron 246, Asus K8N-DL, 2GB PC3200 ECC Reg., XFX GeForce 6600GT, 74gb WD Raptor, 2 x 19\" LCDs, Windows XP x64
Server machine: Intel P4 3.0GHz 2MB EM64T, ECS i865pe, 1GB PC3200, 36gb WD Raptor, Windows Server 2003
Laptop: Dell Inspiron 9100 (Intel P4 3.2GHz 1MB Prescott, i865pe, 512MB PC3200, Mobility Radeon 9700, DVD+R/DL Burner), Windows XP
Linux: P3 450Mhz, 386MB ram, Slackware 10.1 (Running mySQL/Apache) |