[Tool/Web/Other] [PHP] How to start / stop Linux Server
#1

Hi.
Im tryin 2 make a Control Panel for SAMP with PHP. I use Linux.

I got this functions:
Код:
	function StopServer(){
		echo shell_exec('pkill -f samp02Xsvr');
		echo "<br />";
	}
	function StartServer(){
		echo shell_exec('/opt/samp/start.sh &');
		echo "<br />";
	}
But it just doesnt work. No error. Nothin.

I'm usin lampp with php5. Do i need to change something in the configuration of lampp or php? If yes, what?

or is my code just wrong?


P.s. Startin' server manual with start.sh works.
Reply


Messages In This Thread
[PHP] How to start / stop Linux Server - by d123 - 10.05.2009, 13:05
Re: [PHP] How to start / stop Linux Server - by KingJ - 10.05.2009, 18:41
Re: [PHP] How to start / stop Linux Server - by d123 - 10.05.2009, 19:19
Re: [PHP] How to start / stop Linux Server - by KingJ - 10.05.2009, 19:21
Re: [PHP] How to start / stop Linux Server - by d123 - 10.05.2009, 19:37
Re: [PHP] How to start / stop Linux Server - by Woet - 11.05.2009, 05:09
Re: [PHP] How to start / stop Linux Server - by d123 - 11.05.2009, 08:00

Forum Jump:


Users browsing this thread: 1 Guest(s)