HTTP_WebDAV_Client readdir()
| From: | Markus Falb | Date: | Tue, 06 Dec 2011 03:12:42 +0000 |
| Subject: | HTTP_WebDAV_Client readdir() | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-31324@lists.php.net to get a copy of this message | ||
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
...
Any users of HTTP_WebDAV_Client out there ?
Kind Regards,
--
Markus Falb