<?
//define the path as relative
$path = "/home/yoursite/public_html/whatever";
//using the opendir function
$dir_handle = @opendir($path) or die("Unable to open $path");
echo "Directory Listing of $path<br/>";
//running the while loop
while ($file = readdir($dir_handle))
{
echo "<a href='$file'>$file</a><br/>";
}
//closing the directory
closedir($dir_handle);
?>
my thing is tho.. since i just have a web host how do i define my path? like say if its a folder that is outside of the folder i have this file in..
ps. i hate being a newB
Edited by b00g3R, 13 August 2006 - 07:21 PM.
