Hi, here's a not so nub problem I am hoping some xperts can help me on.
I am hosting about 10 seperate game servers on three different machines. I used to give out ftp access to everyone and when a server goes down, they would call me or IM me and most of the time I'll restart their server within 15 minutes. Not bad considering I am just servicing for friends.
Now I am tryin to build a PHP web-app that would help me take my hands off things. Basiccly have it where the user can log in, modify text file and start/restart/shutdown their server .. all web-based. Take my hand off and a lil more secure since i dont have to give out ftp acess.
Problem 1:
I can get the sessions, text file modding, and what not to work, but I am having problem with executing .exe files with exec();
my code is :
$exe = "D:\genxpub\hlds.exe -console -game cstrike +map de_dust2 +rcon_password";
exec($exe);
my PATH includes C:\php\php.exe
but no luck.
Anyone?
Problem 2:
After i get exec() to work , if ever, i'll have to figure out how to send exec() to ANOTHER computer and have that computer run the exec() command. I dont want the webserver computer, the one hosting the PHP script and website, to run the game servers also because it cant handle it.
Let me know if anyone can think of a simple solution because i cant think of anything except turning it all into one cluster.
BTW ... I did search on phpbuilder.net, and read the php cli tutorial on phpfreaks.com as well as search on [H]. No thread was similar to my problem .. so hopefully, someone can help.