Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

Looking for a script..

Links for php scripts

Moderators: macek, egami, gesf

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
Coditor
New php-forum User
New php-forum User
 
Posts: 243
Joined: Wed Feb 01, 2006 9:18 am
Location: Netherlands

Return to PHP Scripts

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.