PHP Start/Stop Script
#1

Hello,

im looking for a php server start and stop script. i tried exec(''); but it wont work for me

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


Forum Jump:


Users browsing this thread: 1 Guest(s)