PHP Forum

PHP Forum (http://www.selfphp.de/forum/index.php)
-   PHP Grundlagen (http://www.selfphp.de/forum/forumdisplay.php?f=12)
-   -   ????? ausgabe (http://www.selfphp.de/forum/showthread.php?t=17613)

Swoosh 06.09.2007 22:45:56

????? ausgabe
 
Hallo,
hab mal wieder ein problem:


MeinCode:

PHP-Code:

<?php
        
function mp3info($file) {
            if(
is_writable($file)) {
                
$fp fopen($file,"rb");
                
fseek($fpfilesize($file) -128); 
                
                if(!
fread($fp3) == "TAG") {
                    echo 
"mp3info: Deine mp3-datei hat keine id3 tags.";
                } else {
                    
fseek($fpfilesize($file) -128);
                    
                    if(
$fp) {
                        
$res .= fread($fpfilesize($file));
                    }
                                
                        
$ID3["TITLE"] = substr($res330);
                        
$ID3["ARTIS"] = substr($res3330);
                        
$ID3["ALBUM"] = substr($res6330);
                        
$ID3["RYEAR"] = substr($res934);
                        
$ID3["COMME"] = substr($res9730);
                        
$ID3["GENRE"] = substr($res1271);
                                    
                }
            } 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

Swoosh 06.09.2007 22:57:36

AW: ????? ausgabe
 
das problem hat sich mit trim() erledigt


Alle Zeitangaben in WEZ +2. Es ist jetzt 11:39:02 Uhr.

Powered by vBulletin® Version 3.8.3 (Deutsch)
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.