How to create html links to folders

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrMaxwell
    Too lazy to set a custom title
    • Jul 2005
    • 10057

    #1

    How to create html links to folders

    I have 1000 galleries I made,
    On my hard drive and on the ftp

    Now I want a page of links to all of them...
    Any easy way to do that?
  • MrMaxwell
    Too lazy to set a custom title
    • Jul 2005
    • 10057

    #2
    Maybe if there is a way to make the index in the folder they're all in show the whole directory

    Comment

    • MrMaxwell
      Too lazy to set a custom title
      • Jul 2005
      • 10057

      #3
      I mean some thing else

      Comment

      • darxoul
        Confirmed User
        • Apr 2006
        • 111

        #4
        If for example, you have your galleries in folders like: yoursite.com/folder1 and the second gallery on yoursite.com/folder2 and so on, maybe a Javascript can help you to write the link, incrementing the value just after 'yoursite.com/folder'. Like AWE script for writing the text links

        Comment

        • MrMaxwell
          Too lazy to set a custom title
          • Jul 2005
          • 10057

          #5
          How do I make a directory browsable?
          Do I need to change something through the ftp client I use,
          Or do I need some sort of code in my index.htm page or...

          Comment

          • essentialeo
            Registered User
            • Oct 2006
            • 36

            #6
            To make a directory "browsable", edit your htaccess file.

            Comment

            • Bro Media - BANNED FOR LIFE
              MOBILE PORN: IMOBILEPORN
              • Jan 2004
              • 16502

              #7
              create index.php and put this in it...

              PHP Code:
              <?php
              $file_dir="./";
              $dir=opendir($file_dir);
              while($file=readdir($dir))
              {
                  if ($file != "." && $file != ".." && $file != "index.php")
                  {
                      for($x=0;$x<=count($file);$x++) 
                      { 
                          if($x<count($file)) 
                          { 
                              echo "<a href=\"".$file."\">".$file."</a><br />\n";
                          } 
                      }
                  }
              }
              ?>
              upload then view it

              Comment

              • KarlR
                Registered User
                • Oct 2006
                • 12

                #8
                Just delete index.html and any of the other standards (default.html, ect)

                Then you should get the default browser page.

                Comment

                • MrMaxwell
                  Too lazy to set a custom title
                  • Jul 2005
                  • 10057

                  #9
                  Thanks I think it worked http://xraded.com/vintagesexanalandblowjobgalleries/

                  Comment

                  • MrMaxwell
                    Too lazy to set a custom title
                    • Jul 2005
                    • 10057

                    #10
                    I'm running validator on them now of course it will take a long time

                    Comment

                    Working...