SA-MP Forums Archive
Restart SA:MP hosted server trough a php code - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Restart SA:MP hosted server trough a php code (/showthread.php?tid=346841)



Restart SA:MP hosted server trough a php code - CaTaLinU - 30.05.2012

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 ..


Re : Restart SA:MP hosted server trough a php code - M0xi - 30.05.2012

You need a ssh server ..


Re: Restart SA:MP hosted server trough a php code - CaTaLinU - 30.05.2012

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