Is there a way in PHP that I can run a script locally on a machine from a remote location?
Nov 28th, 2008 07:15
healthy man, dman, Erich Kolb, Nick s,
Although it is extremely dangerous to do so, there are ways.
If you want to execute a command, and then output it as it would look
terminal, with newlines and all, do this:
$output = shell_exec($command);
$output = str_replace("\xa","",$output);
This will make it substitute the newlines for tags, so you get a