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

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 ..
Reply
#2

You need a ssh server ..
Reply
#3

The server is hosted on a Dedicated Server with GameCP
what php code do i need ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)