Cannot use Rcon from PHP script
#1

Hello. Today I've trying to use RCON from a PHP script. I've used Westie's php class.

I don't know what am I doing wrong. Cannot do it from Windows nor Linux. I've sockets extension enabled, and I've verified that the password is correct. The IP too.

In the server logs, there isn't any logs about trying to connect Rcon and things like that.

My PHP script:
PHP код:
require('./SampRconAPI.php');
$rcon = new SampRconAPI('XXXXX'7777'XXXXX');
$rcon->adminSay('Hello'); 
What can I do?
Reply
#2

Change

Код:
require('./SampRconAPI.php');
to

Код:
require('../SampRconAPI.php');
Check again where is the SampRconAPI.php file
Reply
#3

The file is in the same directory. I think that class works correctly, but the problem is when connecting to my server. Thanks.
Reply
#4

I've used it on another dedicated server and now it's working! Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)