Re: I'm online



PEAR has a package to do this:

http://pear.php.net/package/Net_Ping

Dug up another resource on Google explaining how to write your own ping
(haven't tested though):

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1786&lngWId=8

Or you could just execute your systems ping command with shell_exec()
and parse the output. See the comments on
http://www.php.net/manual/en/function.shell-exec.php for an example.


Gernot Frisch wrote:
Hi,

I want to make a script that checks if it can "ping" a certain IP
(mine) and inform others whether I'm online or not.
Can this be done?


--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com

.