Mam problem z fsockopen, oto błąd.
Warning: fsockopen() [function.fsockopen]: unable to connect to IP_SERWERA_CS:27028 (Connection refused) in /home/html/NAWA_WLASNA/mix/valve_rcon.php on line 270 Fatal error: Uncaught exception 'Exception' with message 'Unable to open socket: Connection refused (111)' in /home/html/NAWA_WLASNA/mix/valve_rcon.php:273 Stack trace: #0 /home/html/NAWA_WLASNA/mix/valve_rcon.php(336): Valve_RCON->connect() #1 /home/html/NAWA_WLASNA/mix/przetwarzaj.php(175): Valve_RCON->execute('status') #2 {main} thrown in /home/html/NAWA_WLASNA/mix/valve_rcon.php on line 273
A oto kod:
include('valve_rcon.php');
$r = new Valve_RCON($pass_with_file, $ip_serwera, $port_serwera, Valve_RCON::PROTO_SOURCE);
print $r->execute('status');
Oto plik valve_rcon.php: http://wklej.org/hash/5432e26a6d3/
Porty są odblokowane, ma ktoś pomysł?