9, July 2008

Download and unzip - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Download and unzip
« previous next »
Pages: [1] Print

Author Topic: Download and unzip  (Read 610 times)
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« on: Dec 13, 2006, 03:00:07 PM »

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?


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7945
40623 credits
Members referred : 3



« Reply #1 on: Dec 13, 2006, 03:04:46 PM »

The best is to use cURL library.

Check this tutorial for some basic information :

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

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7945
40623 credits
Members referred : 3



« Reply #2 on: Dec 13, 2006, 03:16:25 PM »

BTW should I write a tutorial specific for file downloads?

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #3 on: Dec 13, 2006, 03:34:45 PM »

That could come in handy...


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7945
40623 credits
Members referred : 3



« Reply #4 on: Dec 13, 2006, 05:11:09 PM »

Ok, I will just for you Wink

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7945
40623 credits
Members referred : 3



« Reply #5 on: Dec 13, 2006, 05:45:29 PM »


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6274
38470 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Dec 13, 2006, 05:55:39 PM »


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


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7945
40623 credits
Members referred : 3



« Reply #7 on: Dec 13, 2006, 06:00:43 PM »

I am glad you like it Smiley

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.... Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #8 on: Dec 13, 2006, 08:06:42 PM »

a great little code snippet. Thanks!


Last blog : Are You Stumbling Yet?
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=5197
Tags : php unzip Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Download and unzip
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 09, 2008, 12:53:55 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.590
Total Topics: 7.356
Total Members: 3.661
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: komrad

30 Guests, 3 Users online :

17 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.