HTTP_WebDAV_Client
[ class tree: HTTP_WebDAV_Client ] [ index: HTTP_WebDAV_Client ] [ all elements ]

Source for file opendir.php

Documentation is available at opendir.php

  1. <?php
  2.     // HTTP_WebDAV_Client registers the "webdav:" userland stream
  3.     require_once "HTTP/WebDAV/Client.php";
  4.  
  5.     // public webdav server as announced on 
  6.     // http://developer.novell.com/extend/director/1194.html
  7.     // WARNING: you should change this to your private server
  8.     //          as the test service seems to be broken right now
  9.     $name "webdav://devcenter:rocks@webdav.silverstream.com/Director/WebDAVService/main/";
  10.  
  11.     $dh opendir($name);
  12.     if (!$dhdie("WebDAV connect failed");
  13.  
  14.     while (false != ($file readdir($dh))) {
  15.       echo "$file\n";
  16.     }
  17.  
  18.     closedir($dh);
  19. ?>

Documentation generated on Mon, 11 Mar 2019 15:46:44 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.