Download a websites directory

Discussion in 'HTML & Website Design' started by ifeallday1, Sep 3, 2008.

  1. #1
    Is there a way to Download a websites directory

    For example:
    www.mysite.com/pages/index.php

    -how can I download all the files in the "pages" director (folder)?
     
    ifeallday1, Sep 3, 2008 IP
  2. 50plus

    50plus Guest

    Messages:
    234
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    use an FTP program :D
     
    50plus, Sep 4, 2008 IP
  3. Limotek

    Limotek Peon

    Messages:
    165
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    lol. Yep, I'll have to agree..use FTP...not got much more to add to that.

    I'm assuming that your intentions are wholesome, you have FTP access and that you're not talking about scraping a site.
     
    Limotek, Sep 4, 2008 IP
  4. ifeallday1

    ifeallday1 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No, Im not intending to do anything malicious at all.

    I just love this one particular website, so I wanted to download the files so I can learn/teach myself how they put it together.

    With an FTP program I would have to have login info though, correct?
     
    ifeallday1, Sep 4, 2008 IP
  5. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes, for FTP you need access to the website server.

    The only thing you can do is save the pages locally, one by one. This saves the source Html file (and optionally, the images) only. If the pages are scripted, such as .php or .asp, you will not see any of that coding behind the scenes.
     
    Dodger, Sep 4, 2008 IP
  6. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you like the design, why not save the html and css only. Is it neccessary to download the whole directory ?
    In fact 95 percent of the directory are dynamic site with database backend. why download the directory ?
     
    justinlorder, Sep 4, 2008 IP
  7. ifeallday1

    ifeallday1 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I thought it would be easier to know the method that was used to put the site together.

    Cause when you save a page that has a "php include" it will not show you the php include in the source, but it will show you the files in which it included.

    Example:


    - A site with this code...

    <body>

    <php include "menu">

    hello this is my site!

    </body>



    - will look like

    <body>

    <a href="home"><a href="about us"><a href="contact us">

    hello this is my site!

    </body>
     
    ifeallday1, Sep 4, 2008 IP
  8. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I kind of figured that is what you wanted to learn. You cannot get that from looking at the Html.

    Suggest you just dive in and start playing with some of the free scripts that are out there. It makes it a little easier with Php/Apache installed on your local machine and an editor that has contextual help for the Php functions/keywords. I use XAMPP and Html-kit for that purpose. There is a Php keyword plugin that links a help system into php.net so I can see how everything is supposed to work.

    After a while you get the hang of things.
     
    Dodger, Sep 4, 2008 IP