Jump to content

mtn through shell_exec


mraza

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.