Skip to content

Instantly share code, notes, and snippets.

@ahemwe
ahemwe / calendar.php
Created May 28, 2014 19:36
php caldav to ical converter for mailbox.org
<?php
$userpwd = '<user>:<pwd>';
$baseurl = 'https://dav.mailbox.org/';
header('Content-type: text/calendar; charset=utf-8');
header('Content-Disposition: attachment; filename=Kalender.ics');
// new cURL-Handle
$ch = curl_init();