[Tool/Web/Other] [PHP] Masters help again 2
#1

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.
Reply
#2

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.
Reply
#3


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..
Reply
#4

^_^ iLinx, I agree, very good method of starting a sa-mp server. 1 up
Reply
#5

nohup /home/server/samp03test &

?
Reply
#6

Quote:
Originally Posted by Matthias_
nohup /home/server/samp03test &

?
He's using Windows, not linux <3
Reply
#7

Can anyone make exact code for me, I am just a noob who need's something
or just explain?
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)