hi, i have a question regarding the creation of directories in PHP. i want to create an acces to an external /remote directory so that on the page it displays the contents. Ia have below the code of the local one, so does anyone know how to call a an external directory. thanks a lot for your help here comes the code <?php echo '<h1>Index of /adult/</h1>'; echo '<ul>'; echo '<li><a href="http://www.doncasa.com/fotos/BA1528 "> Parent Directory</a></li>'; $dir = scandir('.'); $files = count( $dir ); for ( $i = 0; $i < $files; $i++ ) { if ( is_file($dir[$i]) && strlen( $dir[$i] ) <= 36 && ( strstr( strtolower( $dir[$i] ), '.htm' ) || strstr( strtolower( $dir[$i] ), '.html' ) || strstr( strtolower( $dir[$i] ), '.php' ) ) ) echo "<li><a href=\"$dir[$i]\">$dir[$i]</a></li><br>"; if ( is_dir($dir[$i]) && $dir[$i] != "." && $dir[$i] != ".." && $dir[$i] != "adult" ) echo "<li><a href=\"$dir[$i]\"/>$dir[$i]/</a></li><br>"; } echo '</ul>'; ?> regards from barcelona chris
hi, thanks for the answer , but what I mean is to display a remote directory in my local database , i am sorry for the confusing expresion......anyway I was thinking that maybe its a bit iddifuclt if not impossible...thanks in adavance for any answers regards chris