// check if server supports webdav rfc 2518 if ( !$wdc->check_webdav() ) { print 'Error: server does not support webdav or user/password may be wrong <br /> \r\n'; exit; } $http_status = $wdc->mkcol( "/backups" ); $http_status = $wdc->put_file( "/backups/" . "test.zip", "test.zip" ); print 'webdav server returns ' . $http_status. "<br/ > \r\n"; $urlToThePublishedFile = $wdc->filePublish( "/backups/test.zip" ); print 'link to the published file: ' . $urlToThePublishedFile. "<br/ > \r\n"; $fileUnpublishinStatus = $wdc->fileUnPublish( "/backups/test.zip" ); if ( $fileUnpublishinStatus ) { echo "File UnPublished correctly <br /> \r\n"; } else { echo "Some errors occured on file UnPublish <br /> \r\n"; } if ( $wdc->get_file( "/soutcast/woman/gogo/2_1.jpg", "1.jpg" ) ) { Echo "returned true <br /> \r\n"; } else { Echo "returned false <br />\r\n"; }