Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Problem z fsockopen
deLL
post
Post #1





Grupa: Zarejestrowani
Postów: 92
Pomógł: 1
Dołączył: 3.11.2008
Skąd: Kozienice - Polska

Ostrzeżenie: (0%)
-----


Witam,

Mam problem z fsockopen, oto błąd.

Kod
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:

  1. include('valve_rcon.php');
  2. $r = new Valve_RCON($pass_with_file, $ip_serwera, $port_serwera, Valve_RCON::PROTO_SOURCE);
  3. print $r->execute('status');


Oto plik valve_rcon.php: http://wklej.org/hash/5432e26a6d3/

Porty są odblokowane, ma ktoś pomysł?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 18.09.2025 - 07:47