bueno el problema ke tengo esk tengo este script de PHP
Código PHP:
   $dir = opendir("ftp://x:[email protected]/F:/iTunes/iTunes Music/");
                while($file = readdir($dir)){
                if($file != "." and $file != ".." and $file != "Thumbs.db" and $file != "_notes"){
                if($file == $art){
                    $dir2 = opendir("ftp://x:[email protected]/F:/iTunes/iTunes Music/$file/");
                        while($file2 = readdir($dir2)){
                        if($file2 != "." and $file2 != ".." and $file2 != "Thumbs.db" and $file2 != "_notes"){
                        if($file2 == $alb){
                            $dir3 = opendir("ftp://x:[email protected]/F:/iTunes/iTunes Music/$file/$file2/");
                                while($file3 = readdir($dir3)){
                                if($file3 != "." and $file3 != ".." and $file3 != "Thumbs.db" and $file3 != "_notes" and !eregi(".jpg",$file3)){
                                if($file3 == $track." ".$can.".mp3"){
                                echo $file3."-".$track." ".$can.".mp3 si CANCION<br/>";
                                
                                $filename = "ftp://x:[email protected]/F:/iTunes/iTunes Music/$file/$file2/$file3";
                                require_once('../colocar_musica/getid3/getid3.php');
                                $getID3 = new getID3;
                                $ThisFileInfo = $getID3->analyze($filename);
                                getid3_lib::CopyTagsToComments($ThisFileInfo);
                                
                                $artista = @$ThisFileInfo['id3v1']['artist']; 
                                $cancion = @$ThisFileInfo['id3v1']['title'];
                                $album = @$ThisFileInfo['id3v1']['album'];  
                                $url = @$ThisFileInfo['filenamepath'];
                                $location = "musica/musica/".$artista."/".$album."/".$cancion.".mp3";
                                $track = @$ThisFileInfo['id3v1']['track']; 
                                $duracion = @$ThisFileInfo['playtime_string'];                      
                                $genero = @$ThisFileInfo['id3v1']['genre'];     
                                $ano = @$ThisFileInfo['id3v1']['year'];                  
                                $letra = @$ThisFileInfo['lyrics3']['raw']['tag_offset_start']; 
                                $compositor = @$ThisFileInfo['tags']['id3v2']['composer'][0]; 
                                $tamano = @$ThisFileInfo['filesize'];
                                $fecha = date("d-m-Y");
                                
                                $vSourceFile = "ftp://x:[email protected]/F:/iTunes/iTunes Music/$file/$file2/$file3";
                                $vImageName = $cancion.".mp3";
                                $vFoldername = "../../musica/musica/".$artista."/";
                                if(!is_dir($vFoldername)){
                                    mkdir($vFoldername, 0777); //#-- Create a new session directory
                                    chmod($vFoldername, 0777); //#-- Set all the access permissions to the folder
                                }
                                $vFoldername2 = "../../musica/musica/".$artista."/".$album."/";
                                if(!is_dir($vFoldername2)){
                                    mkdir($vFoldername2, 0777); //#-- Create a new session directory
                                    chmod($vFoldername2, 0777); //#-- Set all the access permissions to the folder
                                }
                                if(copy($vSourceFile,$vFoldername2.$vImageName)){
                                    $vStatus = "bien";
                                }else{
                                    $vStatus = "mal";
                                }
    }}}
                        }}}
                }}} 
    que fallo tengo? o que puedo hacer?
Gracias!
 
 

 
 
 Este tema le ha gustado a 1 personas
Este tema le ha gustado a 1 personas