Forum Moderators: coopster
What i want to do is Upload a few files to this main directory (http://example.com/~nintendoadvance/) to let someone access them in a list, and download them files.
how do i do this?
Could it be only configurable by the server itself?
thanks so much!
[edited by: coopster at 9:42 pm (utc) on Nov. 16, 2004]
[edit reason] removed urls per TOS [webmasterworld.com] [/edit]
If not, create an index.php and plop the following snippet in it, and upload it to the same directory
<?php
$dir = './';
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh))!== false) {
if($file <> '.' && $file <> '..') echo '<a href="'.$file.'">'.$file.'</a><br />';
}
closedir($dh);
}
}
?>