31.01.2011, 11:52
Hi everyone, today i tried to start the samp-server by php. I tried:
exec("C:\sampsvr\samp-server.exe");
exec("C:\sampsvr\samp-server.exe + server.cfg");
exec("start C:\sampsvr\samp-server.exe");
exec("cd C:\sampsvr + start samp-server.exe");
exec("cd C:\sampsvr + start samp-server.exe + start server.cfg");
exec("cd C:\sampsvr & start samp-server.exe"); // It execute the server but the page will not load
Of course i made a little script to find the problem giving and output. I got this:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3c, ©2005-2010 SA-MP Team
Unable to exec file 'server.cfg'.
Error: Your password must be changed from the default password, please change it.
I suppose that the samp-server.exe needs a parameter to be executed with the server.cfg, or something like that.
Can somebody help me?
Thanks, Bruno.
exec("C:\sampsvr\samp-server.exe");
exec("C:\sampsvr\samp-server.exe + server.cfg");
exec("start C:\sampsvr\samp-server.exe");
exec("cd C:\sampsvr + start samp-server.exe");
exec("cd C:\sampsvr + start samp-server.exe + start server.cfg");
exec("cd C:\sampsvr & start samp-server.exe"); // It execute the server but the page will not load
Of course i made a little script to find the problem giving and output. I got this:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3c, ©2005-2010 SA-MP Team
Unable to exec file 'server.cfg'.
Error: Your password must be changed from the default password, please change it.
I suppose that the samp-server.exe needs a parameter to be executed with the server.cfg, or something like that.
Can somebody help me?
Thanks, Bruno.