thekrow73
03-11-2007, 12:04 AM
I use the following code in one of my pages to setup and start a game server. It works fine in Firefox, but hangs for 5-10 minutes in IE before continuing on past the pclose($f); part.
<?php
$f = escapeshellcmd("gamerunner.exe -map ".$map." -game ".$game." -time ".$time."");
$handle = popen("$f", "r");
if(!$handle) {
echo ("Error launching server..");
}
sleep(1);
pclose($f);
?>
<p>
Server is launching..
I am still a novice PHP programmer, pls help!? :cool:
<?php
$f = escapeshellcmd("gamerunner.exe -map ".$map." -game ".$game." -time ".$time."");
$handle = popen("$f", "r");
if(!$handle) {
echo ("Error launching server..");
}
sleep(1);
pclose($f);
?>
<p>
Server is launching..
I am still a novice PHP programmer, pls help!? :cool: