30.05.2012, 10:07
I have a domain an a webhost on it
Exists a code that would restar my server trough a connection with the user & password from the GameCP ?
i have tried something like this, the code i have founde on the internet ..
but nothing 
please help me ..
Exists a code that would restar my server trough a connection with the user & password from the GameCP ?
i have tried something like this, the code i have founde on the internet ..
PHP код:
$connection = ssh2_connect($host, 22);
ssh2_auth_password($connection, $user, $password);
ssh2_exec($connection, "cd service8/samp03 && ./samp03svr");

please help me ..