when i want to start server FROM webinterface its not working...
i can start server from shell.. .but here no:/
i add chmod to remote.php and of course cs2d_dedicated...
any suggestion?:/
apt-get install screen
$exec = "nohup ".$_SESSION['curserv']['dir']."cs2d_dedicated -name '".iconv('UTF-8', 'ISO-8859-1', $_SESSION['curserv']['name'])."' -port ".$_SESSION['curserv']['port']." -maxplayers ".$_SESSION['curserv']['maxpl']." -rcon '".$_SESSION['curserv']['rcon']."' 2> /dev/null > /dev/null &";
$exec = "nohup ".$_SESSION['curserv']['dir']."cs2d_dedicated -name '".iconv('UTF-8', 'ISO-8859-1', $_SESSION['curserv']['name'])."' -port ".$_SESSION['curserv']['port']." -maxplayers ".$_SESSION['curserv']['maxpl']." -rcon '".$_SESSION['curserv']['rcon']."' 2> /dev/null > /dev/null &";
$pid=exec("pidof ".$_SESSION['curserv']['dir']."cs2d_dedicated"); exec("kill ".$pid);