Sublime directory Surf the web anonymous Pagerank Monitor


Download and unzip

Mind_nl
Wed 13 December 2006, 02:00 pm GMT +0100
To fill a site (MySQL database) with content I need to schedule a daily download and unzip of a file. I have found zip functions to use so I can unzip the file, but how do I download the file from a remote server to my website? Or could I just open the remote zip file directly in the unzip script?

Nikolas
Wed 13 December 2006, 02:04 pm GMT +0100
The best is to use cURL library.

Check this tutorial for some basic information :

http://www.webdigity.com/index.php?action=tutorial;code=20

Nikolas
Wed 13 December 2006, 02:16 pm GMT +0100
BTW should I write a tutorial specific for file downloads?

Mind_nl
Wed 13 December 2006, 02:34 pm GMT +0100
That could come in handy...

Nikolas
Wed 13 December 2006, 04:11 pm GMT +0100
Ok, I will just for you ;)

Nikolas
Wed 13 December 2006, 04:45 pm GMT +0100
And here you are :)

how to download a file with cURL and php

olaf
Wed 13 December 2006, 04:55 pm GMT +0100

great Tutorial thanks, didn't used curl this way before

Nikolas
Wed 13 December 2006, 05:00 pm GMT +0100
I am glad you like it :)

I wrote this code when I bought a huge script and couldn't download the whole zips to my pc and then upload them to the server.... :)

Mind_nl
Wed 13 December 2006, 07:06 pm GMT +0100
a great little code snippet. Thanks!

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional