|
Posted by The87Boy on 12/13/06 14:07
J.O. Aho skrev:
> function test_internet() {
> if(!$fp=fsockopen('www.google.com', 80)) {
> if(!$fp=fsockopen('www.whitehouse.gov', 80)) {
> if(!$fp=fsockopen('www.microsoft.com', 80)) {
> if(!$fp=fsockopen('www.novell.com', 80)) {
> return false;
> }
> }
> }
> }
> fclose($fp);
> return true;
> }
That was just, what I was looking for
Navigation:
[Reply to this message]
|