I am working on a script which show the server status of a site ...

This is what i used :-
Code: 
<?php
$ip="{$_GET['ip']}";
$port="{$_GET['port']}";
header('Content-type: image/png');
if(!$sock=@fsockopen($ip,"$port", $num, $error, 5)) {
readfile('image/offline.png');
} else {
readfile('image/online.png');
}
?>
Now The Thing is that it shows right status for most of the sites ....
the only problem is abt the expired domains ....

For Example :- cliplinks.net (expired)
It should have shown that the domain is offline ...
But it shows its online ....

So How Can I Fix This .....
Matrix4u Reviewed by Matrix4u on . Server Status Issue I am working on a script which show the server status of a site ... This is what i used :- <?php $ip="{$_GET'ip']}"; $port="{$_GET'port']}"; header('Content-type: image/png'); if(!$sock=@fsockopen($ip,"$port", $num, $error, 5)) { readfile('image/offline.png'); Rating: 5