Quote:
Originally Posted by pharoer
Just upload them into a directory and don't make a index.html or index.htm page for it. Usually you then get a list of files when browsing that directory.
|
This didn't work but I did some research. I found a solution that I thought I would share in case someone else has this problem. It turns out that Standard behavior is that if there isn't an index.html file, going to a directory gives you a list of files in that directory as pharoer had mentioned. GoDaddy doesn't do this. They tell you it's an invalid link, instead.
However, I found some php code to fix this. I was able to copy this code and paste it into the body of a index.php file using Dreamweaver. Just in case Dancingguy reads this, Thank you. You rock and GoDaddy kinda sucks.
http://dancingguy.livejournal.com/116841.html
<?php
$files = scandir ("."); // Get the files of the current directory
$begin = "<a href=\"";
$middle = "\">";
$end = "</a>";
$rowStart = "<tr><td>";
$rowEnd = "</td></tr>\n";
echo "<table border='1' width='400' cellspacing='0' cellpadding='1' align='left'>\n";
echo "<th>Files in this Directory</th>\n";
foreach ($files as $value) {
$pos = strpos ($value, "."); // Eliminate hidden files
if (($pos === false) || ($pos > 0)) {
echo "$rowStart$begin$value$middle$value$end$rowEnd ";
}
}
echo "</table>\n";
?>