Hallo,
<?php
exec('/home/g/gameserver/hlds/cs', $output, $error);
if ($error) {
echo "Error: ";
print_r($output);
exit;
}
?>
http://de2.php.net/manual/en/function.exec.php
Beachte bitte auch:
Note: If you start a program using this function and want to leave it running in the background, you have to make sure that the output of that program is redirected to a file or some other output stream or else PHP will hang until the execution of the program ends.
Note: When safe mode is enabled, you can only execute executables within the safe_mode_exec_dir. For practical reasons it is currently not allowed to have .. components in the path to the executable.
viele Grüße
Axel