Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Download a site.

Download a site.
Thread Tools
Forum Regular
Join Date: Dec 2002
Status: Offline
Reply With Quote
Aug 9, 2004, 10:41 AM
 
Hi, can anyone point me in how to save a php site ?
I need it with images and all, is there any soft or trick to do it ?
Thx.
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Aug 9, 2004, 10:07 PM
 
Originally posted by Zitax:
Hi, can anyone point me in how to save a php site ?
I need it with images and all, is there any soft or trick to do it ?
Thx.
If you're trying to grab the data from a browser you're out of luck, as you'll only get the output of the php scripts, not the script itself.

If that's all you want, then use the command line tool WGET. There's your 'man' page that describes it fully, but here's a good shortcut I googled:-

wget --mirror -w 2 -p --html-extension --convert-links -P ~/Desktop/http://www.yoursite.com/

It'll download the entire site - links and all - and rename all files and convert request strings into static HTML pages. Nice tool!
Computer thez nohhh...
     
Zitax  (op)
Forum Regular
Join Date: Dec 2002
Status: Offline
Reply With Quote
Aug 10, 2004, 12:00 PM
 
Originally posted by Simon Mundy:
If you're trying to grab the data from a browser you're out of luck, as you'll only get the output of the php scripts, not the script itself.

If that's all you want, then use the command line tool WGET. There's your 'man' page that describes it fully, but here's a good shortcut I googled:-

wget --mirror -w 2 -p --html-extension --convert-links -P ~/Desktop/http://www.yoursite.com/

It'll download the entire site - links and all - and rename all files and convert request strings into static HTML pages. Nice tool!
Hi, that comand should be entirely in the terminal ?
Cause I get command not found, sorry but I am not that good in terminal and unix commands, can I just paste it as it is ?
Thx.
     
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status: Offline
Reply With Quote
Aug 10, 2004, 12:56 PM
 
Unfortunately, wget doesn't come bundled with OS X so you'll have to download it. Here's the link: http://www.gnu.org/software/wget/wget.html

But that's only helpful if you have the developer tools installed so you can make use of GCC and make... If not, you can download fink (sorry phil!) and install a binary. Or get on google and search for one, incase someone has made one available without the need for fink.

Alternatively, you could use curl which does come bundled with OS X (although, I don't think it'll do quite what simon suggested, but I don't know). Open up terminal and `man curl'

As usual, I may be giving you duff gen, but I think I'm right...
Just who are Britain? What do they? Who is them? And why?

Formerly Black Book
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Aug 10, 2004, 02:09 PM
 
Originally posted by Black Book:
But that's only helpful if you have the developer tools installed so you can make use of GCC and make... If not, you can download fink (sorry phil!) and install a binary. Or get on google and search for one, incase someone has made one available without the need for fink.
left it on my iDisk for you
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Mac Elite
Join Date: Sep 2001
Location: the intarweb
Status: Offline
Reply With Quote
Aug 14, 2004, 11:20 AM
 
webgrabber is quite a handy wee utility - and no terminal bollox required!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:08 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2