Notices

Overclockers Forums > Software > Microsoft Operating Systems
Microsoft Operating Systems Microsoft Operating Systems and Applications
Forum Jump

web server

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 06-22-09, 08:12 PM Thread Starter   #1
Krashnicki
Member



Join Date: Jan 2005

 
web server


I have a website that is being run on a Godaddy, Windows based, shared hosting account.

I want to set up my account so that I can upload files into a designated folder on my Godaddy server. I want these files to be automatically indexed so that my coworkers can type in a URL and bring up a list of the files in that folder for download. I would like my coworkers to be able to download these files through a web browser and not a ftp client. I don't need the files password protected or secured in any way.

Is there a piece of software that will allow me to do this or a tutorial I can follow? I don't have a clue how to do this. Thanks in advance.

Last edited by Krashnicki; 06-22-09 at 08:26 PM.
Krashnicki is offline   QUOTE Thanks
Old 06-22-09, 10:27 PM   #2
pharoer
Member



Join Date: Dec 2008

 
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.
pharoer is offline   QUOTE Thanks
Old 06-22-09, 10:51 PM Thread Starter   #3
Krashnicki
Member



Join Date: Jan 2005

 
Quote:
Originally Posted by pharoer View Post
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";
?>

Last edited by Krashnicki; 06-24-09 at 01:32 AM.
Krashnicki is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Microsoft Operating Systems
Microsoft Operating Systems Microsoft Operating Systems and Applications
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 02:44 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?