Jump to content

quick question please help


porko2004

Recommended Posts

hi guys i got this code and i was wondering how i make it connect to an ip which is not the web server.

 

please help

 

<center>
<font color="#FFFFFF"><b>Online Players:</b></font> <font color="#FFFF00"><b> <?php echo (exec('netstat -a -n |find "5816"  |find "ESTABLISHED" /c')); ?>  </b><br /> 
</font></center>

Link to comment
https://forums.phpfreaks.com/topic/143560-quick-question-please-help/
Share on other sites

you could install a basic webserver application on the second server and run a script like

<?php exec('netstat -a -n |find "5816"  |find "ESTABLISHED" /c',$output);
echo implode("<br>",$output) ?>

on it

then get it using curl

and put it in your main page on your web server

 

Scott.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.