Return to Snippet

Revision: 26167
at April 19, 2010 13:26 by tclancy


Initial Code
$command = 'your command goes here';
$output = exec($command . ' 2>&1', $output, $return);

Initial URL
http://www.bigresource.com/Tracker/Track-php-D1qoCq9R/

Initial Description
I couldn't get PHP running a local Python script even when there were no permission problems. Trick was the '2>&1' at the end.

Initial Title
PHP exec() on External Script File

Initial Tags

                                

Initial Language
PHP