PHP - Restart a SA-MP server - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PHP - Restart a SA-MP server (
/showthread.php?tid=274355)
PHP - Restart a SA-MP server -
lewismichaelbbc - 05.08.2011
Hello all, i was wondering if any of you know how to restart a SA-MP server through a PHP web page. I have tried searching the forums but the things i did find had dead download links.
Thanks
Re: PHP - Restart a SA-MP server -
taborda11 - 05.08.2011
Depend of your GM, If its Ravens or LARP. You can use /Upload for restart your server uploading the new script files.
Re: PHP - Restart a SA-MP server -
linuxthefish - 05.08.2011
You can use ecec and proc_open.
PHP код:
<php exec('nohup ./samp03svr &'); ?>
And to kill it:
PHP код:
<php ecec('killall -9 samp03svr'); ?>
Re: PHP - Restart a SA-MP server -
lewismichaelbbc - 05.08.2011
Thanks ^^