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)?
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.
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?
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.
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 ?
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>
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.