I want to make a local copy of a website filled with articles.
I know I can do this by browsing to the website then saving the temporary internet files.
I want to automate this process through a script rather then doing it manually. Can someone please point me in the right direction. I'm not asking for you to tell me how to do this, but I'm wondering where to start.
I'm a C# business application developer so I'm not sure how one would do this. PHP is still quite new to me.
Thanks for any advice.
How to obtain HTML files through a script
Moderator: General Moderators
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: How to obtain HTML files through a script
You dont even have to use php. Linux has this built in already. Are you familiar with linux command line? If not there might be a GUI for it. But the command you want is wget.
Re: How to obtain HTML files through a script
Thank you. I'm a linux newbie but I do have fedora installed on my laptop. I will give this a try. I'm also curious for my own reference how to do this through php. I figure I'd send a http header to the web server, and I will get a response back. Is the html contained in the response? I haven't had time to experiment but hopefully I'll get this figured out sooner or later.