
Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.
| Code: |
| http://www.phptoys.com/e107_plugins/content/content.php?content.41 |
| Code: |
| <?php
$host = [i]"YOUR IP ADDRESS"[/i]; $i = "27015"; $fp = fsockopen($host,$i,$errno,$errstr,10); if($fp){$portresult = "Open"; close($fp); } else{ $portresult = "Closed";} flush(); echo $portresult; ?> |
| Code: |
| <?php
$host = "113.212.97.203"; $i = "27015"; $fp = fsockopen($host,$i,$errno,$errstr,10); if($fp){$portresult = "Open"; close($fp); } else{ $portresult = "Closed";} flush(); echo $portresult; ?> |
| Code: |
| Warning: fsockopen() [function.fsockopen]: unable to connect to 113.212.97.203:27015 in /home/content/****.php on line 4
Closed |
| Code: |
| $host = "113.212.97.203";
$port = "27015"; $connection = @fsockopen("udp://".$host, $port, $errno, $errstr, 5); echo $connection; echo ($connection ? 'Online' : 'Offline'); ($connection ? fclose($connection) : null); |
I tried with a random server which is on 27015:
Result:
The server was up at the time. |
was that port open though?
am just testing this now.....
| Code: |
| <?php
$connection = @fsockopen('google.co.uk', 80, $errno, $errstr, 5); echo ($connection ? 'online' : 'offline'); ($connection ? fclose($connection) : null); ?> |
| Code: |
| http://www.canyouseeme.org/ |
What about this?
|
that only works from the server computer via a browser so it's not possible for me. the server is CS only - no HTTP on that machine.