Reply to Re: See if there are Internet-connection

Your name:

Reply:


Posted by J.O. Aho on 12/13/06 11:21

The87Boy wrote:
> J.O. Aho skrev:
>> if(shell_exec('ping -c 1 www.whitehouse.gov | grep "64 bytes"')) {
>> echo "Found the path to the warmonger";
>> } else {
>> echo "No internet or warmonger dead.";
>> }
>
> I can't ping on the network, I'm on

If you have the right to include external files, then you could try to include
or open a remote file, if that works you have connection, if not than you
don't or the remote machine is down.


--

//Aho

[Back to original 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

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