Me and some friends were invited to an event here in Montreal and we need to bring our website with us. The problem is that there's no way we can connect to the internet once there, so we must "capture" a local copy of our website so we can surf the site just like if it was live on the net.
The site is very dynamic, all pages are PHP and most articles come from a MySQL Db...
That means that copying files "as-is" wont work unless I install PHP and MySQL on my machine (windowS) and I don'T want to go through that.
What I'd like is some software (preferably free) that could fetch the whole website and copy it locally (and update the links as it goes), making the whole thing one big static site.
I googled a lot to find a program suitable for this, but the best I have so far is WebWhacker, but it doesn't follow redicts by itself (301 moved permanently) and this is annoying since I have a few of theses and it just crawls the page as if it was a normal page (displaying 301, moved permanently, click here to...).
Anybody has a good program to recommend that could do that ?
I recommend you install PHPerl in your computer this come with Apache/PHP/mySQL/myphpadmin and mail clients..
than backup your mysql database and import in your local computer where you install phperl using myphpadmin.
and than copy files in phperl www directory.
it will start working as same as your online version working.
its soo easy. but if you still have any problem please contact me i will be very happy to help you.
Thing is, this has got to be functional - the site I'll be distributing via CD has data that is displayed when a user searches for something. It's basically a sales catalogue. So the MySQL and PHP functionality has to be there. Static HTML just won't cut it for my needs.
The *nix command `wget` will do what you asking (local copy with static files), it's installed on most linux distro's and a very powerful command that I have used a number of times to do mirroring and local copies.
The man page should tell you everything you need to know but it's a bit long. This is the command I would use...