PHP code example of myphps / webdav
1. Go to this page and download the library: Download myphps/webdav library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
myphps / webdav example snippets
der::$rootPath = __DIR__;
MyLoader::$namespaceMap = ['WebDav\\' => 'src/'];
//�目录
$dav = new WebDav($file);
//$dav->prefix = '';
//$dav->isLog = true;
WebDav::$authUsers = ['root'=>'123456'];
$dav->isSend = true;
$dav->reqHandle();