Hallo,
hab mal wieder ein problem:
MeinCode:
PHP-Code:
<?php
function mp3info($file) {
if(is_writable($file)) {
$fp = fopen($file,"rb");
fseek($fp, filesize($file) -128);
if(!fread($fp, 3) == "TAG") {
echo "mp3info: Deine mp3-datei hat keine id3 tags.";
} else {
fseek($fp, filesize($file) -128);
if($fp) {
$res .= fread($fp, filesize($file));
}
$ID3["TITLE"] = substr($res, 3, 30);
$ID3["ARTIS"] = substr($res, 33, 30);
$ID3["ALBUM"] = substr($res, 63, 30);
$ID3["RYEAR"] = substr($res, 93, 4);
$ID3["COMME"] = substr($res, 97, 30);
$ID3["GENRE"] = substr($res, 127, 1);
}
} else {
echo "mp3info: Datei kann nicht gelesen werden.";
}
return $ID3;
};
print_r(mp3info("./heile_welt.mp3"));
?>
MeinProblem:
Die Ausgabe sieht so aus:
Code:
Array
(
[TITLE] => Heile Welt��������������������
[ARTIS] => Bushido�����������������������
[ALBUM] => 7�����������������������������
[RYEAR] => 2007
[COMME] => www.test.de�������������������
[GENRE] =>
)
Wie bekomme ich dir fragezeichen weg?
str_replace("?"....
nützt nichts die sind trotzdem da was kann ich machen?
Danke, Swoosh