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? 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. Link to comment https://forums.phpfreaks.com/topic/232559-php-exec/#findComment-1196203 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.