PHP-Minecraft-Rcon
PHP-Minecraft-Rcon copied to clipboard
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4212720152 bytes)
Topic ;v
We need to see your code or that error is useless.
i just a copy paste a example and rename host and passowrd
$host = 'cavecloud.pl'; $port = 55; $password = 'mypassword'; $timeout = 3;
use Thedudeguy\Rcon;
$rcon = new Rcon($host, $port, $password, $timeout);
if ($rcon->connect()) { $rcon->sendCommand("say Hello World!"); }
With your credentials removed, what does YOUR code look like?
Edited
I just wanna test, and sendcommand after a page load
This error is on line 207 at Rcon.php.
line 207: $packet_data = fread($this->socket, $size);
This error is on line 207 at Rcon.php.
line 207: $packet_data = fread($this->socket, $size);
Screenshot? Also, did you install this via composer?
Don't know if the problem is still actual, but as i remember i had the same message when i mixed up server port and rcon port.