Jump to content

Web script probblem ! :)


Recommended Posts

Hllow guys,i post here because i hope i get some help.

I have a script for my website it show ch1-2 ,db and auth is on or off,i put server ip,i put correct ip..but it's not working,it's showing offline all time,here it's the script!Thx !

<tr class="top" >
<td width="141"><font size="3"><font style="color:Lime"><span></span> <a><font face="Arial"><?php 
$ip="SERVER IP"; //ip server
$listaPorturi=array(
11000, //port database din conf.txt din usr/home/game/db...
31009, // auth
21000, //port ch1
22000); //port ch2
$i=0;
echo "<table><tr><td><b>DB</b></td><td><b>Auth</b></td><td><b>CH1</b></td><td><b>CH2</b></td></tr>";
echo "<tr>";
foreach ($listaPorturi as $port){
$verificare = @fsockopen($ip, $port, $errno, $errstr, 1);
echo "<td style='text-align: center;'>";
if (!$verificare)
{
echo "OFF";
}
else
{
echo "ON";
}
echo "</td>";
@fclose($verificare);
$i++;
}
echo "</tr></table>";
?> </i></font></a><br></size></td>

</tr>  

Hope i get some help here ! 

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.