SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 05/08/2011, 04:22 PM   #1
lewismichaelbbc
Huge Clucker
 
Join Date: Jun 2010
Posts: 221
Reputation: 5
Default PHP - Restart a SA-MP server

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
lewismichaelbbc is offline  
Old 05/08/2011, 05:09 PM   #2
taborda11
Little Clucker
 
Join Date: Jan 2011
Location: Portugal
Posts: 38
Reputation: 1
Default Re: PHP - Restart a SA-MP server

Depend of your GM, If its Ravens or LARP. You can use /Upload for restart your server uploading the new script files.
taborda11 is offline  
Old 05/08/2011, 05:24 PM   #3
linuxthefish
High-roller
 
linuxthefish's Avatar
 
Join Date: Dec 2010
Location: Al-Dunya
Posts: 2,858
Reputation: 690
Default Re: PHP - Restart a SA-MP server

You can use ecec and proc_open.

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

PHP Code:
<php ecec('killall -9 samp03svr'); ?> 
__________________
linuxthefish is offline  
Old 05/08/2011, 06:04 PM   #4
lewismichaelbbc
Huge Clucker
 
Join Date: Jun 2010
Posts: 221
Reputation: 5
Default Re: PHP - Restart a SA-MP server

Thanks ^^
lewismichaelbbc is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Restart TERMINATOOR Server Support 7 07/03/2011 01:33 PM
Restart server Cameltoe Server Support 22 01/12/2010 10:08 AM
Server restart... [DDC]Delight Help Archive 2 31/10/2010 12:00 PM
[SA-MP Server 0.3a RC7] PVar resetted too early at server restart Wanted1900 Bug Reports 11 14/04/2010 11:15 AM
[HELP] Me For Restart Server The_Cobra Help Archive 2 11/02/2010 11:46 AM


All times are GMT. The time now is 06:30 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.