cvs: pear /HTTP_WebDAV_Client/examples opendir.php
| From: | Hartmut Holzgraefe | Date: | Thu, 04 Dec 2003 22:59:22 +0000 |
| Subject: | cvs: pear /HTTP_WebDAV_Client/examples opendir.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-14628@lists.php.net to get a copy of this message | ||
hholzgra Thu Dec 4 17:59:22 2003 EDT
Added files:
/pear/HTTP_WebDAV_Client/examples opendir.php
Log:
small example
Index: pear/HTTP_WebDAV_Client/examples/opendir.php
+++ pear/HTTP_WebDAV_Client/examples/opendir.php
<?php
// HTTP_WebDAV_Client registers the "webdav:" userland stream
require_once "HTTP/WebDAV/Client.php";
// public webdav server as announced on
// http://developer.novell.com/extend/director/1194.html
// WARNING: you should change this to your private server
// as the test service seems to be broken right now
$name = "webdav://devcenter:rocks@webdav.silverstream.com/Director/WebDAVService/main";
$dh = opendir($name);
if (!$dh) die("WebDAV connect failed");
while (false != ($file = readdir($dh))) {
echo "$file\n";
}
closedir($name);
?>