| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
downloading file from a link
From: Carlo Dominguez <carlod_at_athenaeservices.com>
Date: Wed, 1 Jun 2005 10:08:39 +0800
hi,
im a newbie in using this function and PHP.. however my problem is I'm trying to download files via curl from a multiple link inside a text file..
example: (links.txt) these are the sample links inside the textfile
then i wud use a loop to retrieve all these, here's my complete code:
// set file to read
// open file
// read file
while (!feof($fh))
//extract file
curl_exec($ch);
// close file
I took this from a sample in weberdev.com, somehow i was trying to get some help from the author and he can't solve this. It downloads fine.. the 3 links above.. but it seems to me the first one in line is the one that works fine when opened like the zip file.. but the remaining links after being downloaded is either corrupt or incomplete file.
please help me???? tnx and God Bless
rgrds,
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info