PHP Start/Stop Script
#2

erm, for starting the server

Code:
shell_exec('cd DIRECTORY OF SERVER FILES');
shell_exec('./samp02Xsvr');
e.g.
Code:
shell_exec('cd /home/daniel/samp/');
shell_exec('./samp02Xsvr');
Stop the server
Code:
shell_exec('pkill -9 -f samp02Xsvr');
Reply


Messages In This Thread
PHP Start/Stop Script - by xinul - 03.06.2009, 17:59
Re: PHP Start/Stop Script - by darkrider366 - 03.06.2009, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)