transparencia Posted April 3, 2011 Share Posted April 3, 2011 Hi guys! I have a php script that works and outputs info: <?php echo exec("uptime"); ?> and another that doesn't output anything: <?php echo exec("MP4Box"); ?> Why? Quote Link to comment https://forums.phpfreaks.com/topic/232559-php-exec/ Share on other sites More sharing options...
nethnet Posted April 3, 2011 Share Posted April 3, 2011 The exec() function doesn't output anything by default, it just runs external commands. You can set an optional second parameter variable to store output as an array, or you can look into the system() / passthru() functions that return output. Quote Link to comment https://forums.phpfreaks.com/topic/232559-php-exec/#findComment-1196203 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.