PHP - Restart a SA-MP server
#1

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

Depend of your GM, If its Ravens or LARP. You can use /Upload for restart your server uploading the new script files.
Reply
#3

You can use ecec and proc_open.

PHP код:
<php exec('nohup ./samp03svr &'); ?> 
And to kill it:

PHP код:
<php ecec('killall -9 samp03svr'); ?> 
Reply
#4

Thanks ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)