I have only tried exec.
It seems to work, and starts the program in the background (Would be better in the foreground).
But I can not enter the gameserver. (it is in the "processes"-list)
Her is some of the code i have tried.
This one starts the program.
$cmd = "\"D:\EA GAMES\MOHAA\moh_spearhead_server.exe";
exec($cmd);
cmd runs alone with this one (twice?)
<?php
exec('c:\WINXP\system32\cmd.exe /c START D:\EA GAMES\MOHAA\moh_spearhead_server.exe');
?>
This is the syntax i want to run the program with.
D:\EA_GAMES\MOHAA\moh_spearhead_server.exe +set developer 2 +set dedicated 2 +set ui_console 1 +set chat 0 +set sv_chatter 0 +set logfile 3 +exec train.cfg +set g_logsync 1
HurryCain