foreach ($test as $value) { echo "

MP3 found => \n $value"; // $i=$i+1; // echo "
\n $i"; if(strstr($value,"ogg")) { echo "OGG FOUND"; echo "
$value \n is ogg"; $test=oggdata($value); echo "



"; $title=$test['Title']; $artist=$test[Artist]; $album=$test[Album]; $year=$test[Date]; $comment=$test[Comment]; $track=$test[Tracknumber]; $genre=$test[Genre]; echo "...::::: : File : $value :::::...
"; echo "...::::: : : ----------------------------------
"; echo "...::::: : : Header : :::::...
"; echo "...::::: : : Title : $title :::::...
"; echo "...::::: : : Artist : $artist:::::...
"; echo "...::::: : : Album : $album :::::...
"; echo "...::::: : : Year : $year :::::...
"; echo "...::::: : : Comment :$comment :::::...
"; echo "...::::: : : Track : $track :::::...
"; echo "...::::: : : Genre : $genre :::::...
"; echo "...::::: : : ----------------------------------"; addSong(ogg); print_r($test); }elseif(strstr($value,"mp3")) { echo "
mp3 yes yes yes u know it"; if($ID3->readtag($value) == true) //{ $testing=str_replace(chr(0),"",$ID3->album); echo "
testing is EQUAL TO \n $testing"; // $ID3->title=mysql_real_escape_string($ID3->title); echo "...::::: : File : $mp3_file :::::...
"; echo "...::::: : : ----------------------------------
"; echo "...::::: : : ID3v1 : $ID3->tag :::::...
"; echo "...::::: : : Title : $ID3->title :::::...
"; echo "...::::: : : Artist : $ID3->artist:::::...
"; echo "...::::: : : Album : $ID3->album :::::...
"; echo "...::::: : : Year : $ID3->year :::::...
"; echo "...::::: : : Comment : $ID3->comm :::::...
"; echo "...::::: : : Track : $ID3->track :::::...
"; echo "...::::: : : Genre : $ID3->genre :::::...
"; echo "...::::: : : ----------------------------------"; $path=$value; // echo "
path is \n $path"; $path=str_replace("/opt/lampp/htdocs/","/../../../",$value); // $ID3->album=mysql_real_escape_string($ID3->album); //$ID3->album=addslashes($ID3->album); //$ID3->title=addslashes($ID3->tibtle); //$ID3->artist=addslashes($ID3->artist); //$ID3->comm=addslashes($ID3->comm); addSong("mp3"); // echo "
new path is \n $path"; } }