Link tot ce exista intr-un directoriu , recursiv daca inauntru mai sunt directoare result : http://robert1995.zxq.net/ Nu prea exista css , but who cares about that <html> <style> .push{ margin-left:50px; } </style> <body> <?php function link_my_dir($directory , $ignore = array()){ if ($handle = opendir($directory)) { $tokens = explode(DIRECTORY_SEPARATOR , $directory); echo '<div class="push">'; if(!empty($ignore)){ echo $tokens[count($tokens) - 1 ].'<br/>'; echo '<div class="push">'; } while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file !='nfo.nfo') { if(is_dir($directory.DIRECTORY_SEPARATOR.$file) && !in_array($directory.DIRECTORY_SEPARATOR.$file , $ignore)){ $ignore[] = $directory.DIRECTORY_SEPARATOR.$file; link_my_dir($directory.DIRECTORY_SEPARATOR.$file , $ignore); }else{ $to_echo = str_replace(array("[www.keepvid.com]", "_" , ".mp4" , ".mp3") , "" , $file); $search_query = str_replace("-" , "" , $to_echo); $search_query = str_replace(" " , "+" , $search_query); $fix_space = explode("+" , $search_query); foreach($fix_space as $k=>$f){ if($f == '') unset($fix_space[$k]); } $search_query = implode("+" , $fix_space); //echo "$to_echo . Link : http://www.youtube.com/results?search_query=$search_query&aq=f<br/>"; echo '<a target="_blank" href="http://www.youtube.com/results?search_query='.$search_query.'&aq=f">'.$to_echo .'</a><br/>'; } } } echo '</div>'; echo '</div>'; closedir($handle); } } echo "Results : <br/>"; link_my_dir('D:\My Documents\Muzica'); ?> </body> </html>