PHP Start/Stop Script - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: PHP Start/Stop Script (
/showthread.php?tid=80309)
PHP Start/Stop Script -
xinul - 03.06.2009
Hello,
im looking for a php server start and stop script. i tried exec(''); but it wont work for me
thanx
Re: PHP Start/Stop Script -
darkrider366 - 03.06.2009
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');