15 lines
360 B
PHP
15 lines
360 B
PHP
|
<?
|
||
|
require_once('getid3/getid3.php');
|
||
|
|
||
|
$mp3= $_GET["mp3"];
|
||
|
$mp3 = str_replace('.png', '.mp3', $mp3);
|
||
|
$mp3 = str_replace('.jpg', '.mp3', $mp3);
|
||
|
|
||
|
$getID3 = new getID3;
|
||
|
$OldThisFileInfo = $getID3->analyze($mp3);
|
||
|
|
||
|
header('Content-Type: ' . $OldThisFileInfo['comments']['picture'][0]['image_mime']);
|
||
|
echo $OldThisFileInfo['comments']['picture'][0]['data'];
|
||
|
die;
|
||
|
|
||
|
?>
|