Hallo
I have been trying to list all the files that are into the directory and subdirectories of my website into one document with the right href to be used later, no luck so far! anyone who has done it? the code:
}
function printEntries()
{
$dh = opendir( $dir );
while ( $file = readdir($dh) )
{
$ext = '.' . array_pop( explode( '.', basename( $file ) ) );
if ( is_file( $dir . "/" . $file ) &&
array_key_exists( $ext, $display_hooks ) )
$rss .= "<file src=" . $file . "alt=\"\"0s\" />\n\t<a href=\"http://www.mysite.com\" show=\"new\">\n</a>\n";
else
{
$rss .= "\"</seq>\n</body>\n</end of txt>\n";
}
}
$flo = fopen("files.txt", "wb");
fputs($flo, $rss);
fclose($foo);
closedir($dir);
}
thanks