[PHP] Masters help again 2 -
Script007Die - 25.05.2010
Hello, I am working on my own sa:mp panel and for start i need little help. I would like to request a code witch when Player press button 'Start' opens 'samp-server.exe' file on my computer located in C:\Documents and Settings\Damir\Desktop\MARKO\Hosting Comapny SAMP Test Server. Thanks.
Re: [PHP] Masters help again 2 -
darkrider366 - 25.05.2010
What ever you do, don't use shell_exec(); or exec();
It's probably the most dangerous way of running the file, I would suggest something like the openSSH solution for windows.
Re: [PHP] Masters help again 2 -
iLinx - 25.05.2010

Oh thats right, you wanted to write a hosting panel without any knowledge on it, my bad..
http://ca2.php.net/manual/en/function.proc-open.php
Use it with caution, else security exploits will ensue..
Re: [PHP] Masters help again 2 -
darkrider366 - 25.05.2010
^_^ iLinx, I agree, very good method of starting a sa-mp server. 1 up
Re: [PHP] Masters help again 2 -
GTA_Rules - 25.05.2010
nohup /home/server/samp03test &
?
Re: [PHP] Masters help again 2 -
darkrider366 - 25.05.2010
Quote:
Originally Posted by Matthias_
nohup /home/server/samp03test &
?
|
He's using Windows, not linux <3
Re: [PHP] Masters help again 2 -
Script007Die - 25.05.2010
Can anyone make exact code for me, I am just a noob who need's something

or just explain?
Re: [PHP] Masters help again 2 -
darkrider366 - 25.05.2010
Quote:
Originally Posted by Script007Die
Can anyone make exact code for me, I am just a noob who need's something 
or just explain?
|
Why don't you check the forums for existing control panel, and NOT rip them, but code yours from scratch, I can recommend one, ahem, (me) also, Westie has one.