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, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php