Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include("HTTP/WebDAV/Client.php");
- $remote = "webdavs://{$user}:{$pass}@{$host}/{$remotePath}";
- $content = file_get_contents(realpath($local));
- if ($content !== FALSE) {
- #$handler = fopen($remote, 'w');
- #fwrite($handler, $content);
- #fclose($handler);
- file_put_contents($remote, $content);
- }
Add Comment
Please, Sign In to add comment