Re: HTTP_WebDAV_Client readdir()

From: Date: Wed, 07 Dec 2011 16:29:39 +0000
Subject: Re: HTTP_WebDAV_Client readdir()
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31330@lists.php.net to get a copy of this message
On 6.12.2011 04:12, Markus Falb wrote: > Hi, > > > require_once "HTTP/WebDAV/Client.php"; > $name = "webdav://login:password@fqdn/dir/"; > > $dh = opendir($name); > if (!$dh) die("WebDAV connect failed"); > > while (false !== ($file = readdir($dh))) { > echo "$file\n"; > } > > > but this outputs only the top level directory name > > # php /tmp/webdav.php > dir > > I would have expected that all subdirectories and files would be listed. > > # php /tmp/webdav.php > ... > subdirectory 1 > subdirectory 2 > file 1 > file 2 > ... Well, dont bother, I found this http://pear.php.net/bugs/bug.php?id=18445 -- Markus Falb

« previous php.pear.general (#31330) next »