Re: libcurl and getting mutiple files

From: Date: Sat, 04 Oct 2003 03:40:51 +0000
Subject: Re: libcurl and getting mutiple files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-165015@lists.php.net to get a copy of this message
Dunno if you can do this through curl (honestly never used it), but you could always do for ( $x=0 ; $x<=10 ; $x++ ) { curl_setopt($ch, CURLOPT_URL, "http://www.server.com/file". (($x < 10) ? '0' : '').$x.".txt"); } Sincerely, Captain Obvious On Friday 03 October 2003 07:25 pm, bike@intenseproductions.com wrote: > i know that with command line curl i can do this: > > % curl http://www.server.com/file[01-10].txt > > and it will get all files: file01.txt - file10.txt > > how can i achive this with libcurl? > > when i do > > curl_setopt($ch, CURLOPT_URL, > "http://www.server.com/file[01-10].txt"); > > it always bombs....is there a certain way of doing this? or can it even be > done in libcurl? > > (i'm using php libcurl). > > thanks in advance! -- Evan Nemerson evan@coeus-group.com

« previous php.general (#165015) next »