FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Executing an Exe?





[FuN]goku
Right im just wondering, My mate is getting his own server soon and its a gameserver for Enemy territory so i m wondering if its possible to like, start a server from php, like tell it to execute an exe specified in the code. if it is could you please give me an example of this code. cuz i would like to make a control panel for the server ^^
MrBlueSky
Code:

<?php
echo '<pre>';

// Outputs all the result of shellcommand "ls", and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
$cmd = "ls -l";
$last_line = system(escapeshellcmd($cmd), $retval);

// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>



http://www.php.net/manual/en/function.system.php
[FuN]goku
mmmk thanks iguess
Mosquito.Tyler
I know a way to start CS:S servers from teh web and such, steam has a utility especially for it, I don't know if ET runs in steam, if it does, Google "Steam Applaunch". If not, I don't know. Sorry. Embarassed
[FuN]goku
Mosquito.Tyler wrote:
I know a way to start CS:S servers from teh web and such, steam has a utility especially for it, I don't know if ET runs in steam, if it does, Google "Steam Applaunch". If not, I don't know. Sorry. Embarassed
no et doesnt run in steam. but ive seen et servers that have a web gui for starting it and whatnot,
Related topics
EXE's not EXEcuting - and general windows gripes :)
VB 6 problem executing a .exe program via a visual basic app
Calling Exe from Webbrowser
ads and .exe files
elan.exe
How to make an execution file (*.exe) for java program?
JAva HELP
explorer.exe
A search to make JS file even smaller-2306byte to 542
Run a exe file in HTML(not download, run it)
.EXE games in my website
Importing/executing a BIG .SQL File
BAT/CMD to EXE converter freeware?
.exe Files
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.