curl-and-php
Re: Recursive fetch
Date: Tue, 29 Mar 2005 12:40:53 -0300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Je Mardo Marto 29 2005 04:00, Daniel Stenberg skribis:
> On Mon, 28 Mar 2005, Pupeno wrote:
> > I'm currently using libcurl on php to fetch a file over ftp. Is it
> > possible to do it recursively ? If so, how ?
>
> Do a diretory list. Parse the list. Fetch each file and directory in that
> list. Loop.
>
> libcurl has no such feature built-in.
Oopps, it'd be a nice addition.
Anyway, what I have, I'm not sure if it's an URL to a file or directory, in
the first case I need to only download it, in the second case, I need to do
recursive downloading. How can I find if it is a file or directory ?
Thanks.
- --
Pupeno: pupeno@pupeno.com - http://pupeno.com
Reading Science Fiction ? http://sfreaders.com.ar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCSXcIfW48a9PWGkURAkm/AJ92Iw0x5+rB7z0B+g7TKLub7i7b3wCgkV9h
JkDD15TPHi55Jfd1kK5H848=
=sZp9
-----END PGP SIGNATURE-----
Received on 2005-03-29