Cannont start samp-server by PHP (Win)
#1

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


Messages In This Thread
Cannont start samp-server by PHP (Win) - by bruunosoniico - 31.01.2011, 11:52
Re: Cannont start samp-server by PHP (Win) - by Voldemort - 31.01.2011, 12:13
Re: Cannont start samp-server by PHP (Win) - by DuRKH3iM - 31.01.2011, 12:21
Re: Cannont start samp-server by PHP (Win) - by Calgon - 31.01.2011, 12:41
Re: Cannont start samp-server by PHP (Win) - by DuRKH3iM - 31.01.2011, 12:44
Re: Cannont start samp-server by PHP (Win) - by bruunosoniico - 31.01.2011, 13:31
Re: Cannont start samp-server by PHP (Win) - by bruunosoniico - 03.02.2011, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)