OMG!I am geek
Gender:
Posts: 56
374 credits Members referred : 0
« on: Sep 25, 2005, 06:33:41 PM »
I would like to create a script that will be able to browse a directory, and display links with the html files.
For example if the file called a.html it should produce <a href=/directory/a.html>a</a>
Can you please help me on this?
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 8249
42481 credits Members referred : 3
« Reply #1 on: Sep 25, 2005, 06:50:25 PM »
Ok here is your code :
Code:
<?php ini_set('display_errors',1); $dir = 'zen/docs'; // <- This should be a directory in your http path not in the filesystem. Do not add a slash in the end $dh=opendir($dir);