How can i get my script to tell if my pc is online?
I was thinking along the lines of if a port is open, then...
That sort of thing.
I will have 2 PC's running via a router, so i couldnt ping them as the other one may be on. Possibly i could see if port 80 is open (there will be an apache webserver on the pc)
I did try
if (contents of a file on the pc == "online")
However, this took ages to load, then ended up with an error in the middle of the page. I would like it to just display "Offline"
thanks
Dave