Looking for a script..

Links for php scripts

Moderators: macek, egami, gesf

User avatar
Coditor
New php-forum User
New php-forum User
Posts: 243
Joined: Wed Feb 01, 2006 9:18 am
Location: Netherlands
Contact:

Postby Coditor » Thu Mar 23, 2006 12:33 am

Code: Select all

<?php
$myTestIp = '192.168.0.62';
$myTestPort = 80;
$test = @fsockopen($myTestIp, $myTestPort, $errNr, $errMsg, 5);
if ($test) {
   ?>
   <img src="online.gif" border="0" alt="" />
   <?php
} else {
   ?>
   <img src="offline.gif" border="0" alt="" />
   <?php
}
?>


Coditor

Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest