mraza Posted March 5, 2010 Share Posted March 5, 2010 hi i am trying to run movie thumbnailer (mtn) thround php script but its not working, in shell it works correctly, here is my code to test <?php error_reporting(E-ALL); if (function_exists(shell_exec)) { echo "Shell Function is Available<br />"; } $output = shell_exec('mtn'); if($output) { echo "<pre>$output</pre>"; }else{ echo "Not worked and returned: " . print_r($output); } ?> and the result is Shell Function is Available Not worked and returned: 1 if i run mtn in shell it works perfectly, please any help? thanks Link to comment https://forums.phpfreaks.com/topic/194248-mtn-through-shell_exec/ Share on other sites More sharing options...
mraza Posted March 5, 2010 Author Share Posted March 5, 2010 sorry i tried this too $output = shell_exec('./path/to/mtn'); but not working Link to comment https://forums.phpfreaks.com/topic/194248-mtn-through-shell_exec/#findComment-1021923 Share on other sites More sharing options...
mraza Posted March 5, 2010 Author Share Posted March 5, 2010 i tried to run this php file through CLI and everything is working correctly, please can someone tell why its not running in browser but run ok in CLI... its a ubuntu 8.10 server Thanks for support Link to comment https://forums.phpfreaks.com/topic/194248-mtn-through-shell_exec/#findComment-1021937 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.