$rt=passthru("/usr/bin/mediainfo ".$file );
echo $rt;
?> it doesn't show anything even if it works in the cli i have linux ubuntu OS . thanks for all
$rt=passthru("/usr/bin/mediainfo ".$file );
echo $rt;
?> it doesn't show anything even if it works in the cli i have linux ubuntu OS . thanks for all
mediainfo
anywhere, some shared hosting provider prevent this from happening, in that case define the full path where mediainfo
binary is located, ej. /usr/bin/mediainfo
, review your $PATH
enviroment var. on PHP.mediainfo
and escape spaces and problematic characters.file.php
:
<?php
echo passthru('mediainfo file.mp3');
// last line, no closing tag needed.