Execute file from webpage
Hi,
I'm trying to find out how I can execute a file by clicking on a button on my website. I have a simple PHP test site running on my webserver. Now I would like to create a button on it that, when you press it, executes a file on the server itself. (Like a script, or for example a Half-Life server) Does anyone have any experience with this? |
|
<?php
exec("command"); > to view output of command: exec("command 2>&1",$output); while(list(,$val)=each($output)) : print("$val<br>"); endwhile; |
All times are GMT -5. The time now is 10:43 AM. |