Jump to content
×
×
  • Create New...
  • 0

Web script probblem ! :)


emanuel

Question

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
  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

6 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.