You are here: Re: I'm online « All PHP « IT news, forums, messages
Re: I'm online

Posted by Gerry Vandermaesen on 04/25/06 10:30

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация