Open ItsTauTvyDas opened 6 years ago
How long does it load? Does it timeout or does connect()
just return false
instantly?
You mean in browser? Page/file load in 1 sec
But you set a timeout of 3 seconds...? Please check that you have error_reporting(E_ALL);
somewhere before in your code or error_reporting = E_ALL
in your php.ini
and tell us if it makes a difference.
Please also check the contents of $rcon->lastResponse
!
Hm, I tried to change timeout setting, I get same message. And when I add error reporting to php: Warning: fsockopen(): unable to connect to some.ip.ip:25575 (Connection timed out) in /root ?/file/file/rcon.php on line 59 and when I back setting time out to 2 (even 3), error (Connection timed out) changed to (Connection refused) Sorry for english ..
Do you have enable-rcon=true
, rcon.port=25575
and rcon.password=fgdfgdfg
set in your server.properties
?
Yes, I do.
EDIT: Is this host mistake/error or something?
I have tried google play APP, server info or something, and I COULD connect.
What do you mean by google play APP?
I mean This app (application), I can connect to RCON, I enter password and it works!
It must be something with your PHP setup then. I don't know what it could be though...
Maybe this "Code/Source Code" don't support latest PHP version? I think its 7.2 (latest).. ?
Please provide a link to a gist containing your php -i
info
What do you mean pvp -i
? Info? <?php phpinfo(); ?>
?
Just enter php -i
into your servers console (or wherever you're running your PHP files on) to get information about your PHP installation. More information: http://php.net/manual/features.commandline.options.php (Scroll down to the -i
option)
I don't have webserver console, host is limited.
Then provide a phpinfo();
output
What output do you need? Core? System output?
What output do you need? Core? System output?
Create a PHP file with <? phpinfo();
. Type that PHP URL it in your browser and save the result web as HTML.
You can attach the HTML file downloaded to your reply.
@ItsTauTvyDas
@ojgarciab @ricardoboss Help me please, the same problem
@Epicalis , please, provide a link to a gist containing your php -i
or <?php phpinfo();
info. Thanks.
The script is
And I get "no, lol" message in index file (without "else", I get nothing), what to do? I looked in console, command not sended. No error, no nothing