Restart SA:MP hosted server trough a php code
#3

Quote:
Originally Posted by CaTaLinU
Посмотреть сообщение
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 ..


PHP код:
$connection ssh2_connect($host22); 
                     
ssh2_auth_password($connection$user$password); 
                     
ssh2_exec($connection"cd service8/samp03 && ./samp03svr"); 
but nothing

please help me ..
My server is hosted on a Dedicated Server with gamecp
Do you have , at least, root access to the dedicated server?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)