Quote:
Originally Posted by hba I use this as a quick and crude workaround to use a Zimbra calendar with a self-signed SSL certificate and HTTP authentication in Google Calendar: Code: <?php
header('Content-Type: text/calendar; charset=utf-8');
header('Content-Disposition: attachment; filename="calendar.ics"; ');
print file_get_contents("https://myuser:mypass@myserver/zimbra/home/myuser/calendar.ics");
?> |
Very nice! Elegant, yet hackish - I love it. For myself, I need to access several different calendars on a server, so added a get variable for the name thusly:
Code:
<?php
header('Content-Type: text/calendar; charset=utf-8');
header('Content-Disposition: attachment; filename="calendar.ics"; ');
print file_get_contents("https://myuser:mypass@myserver/zimbra/home/".$_GET['user']."/calendar.ics");
?> ... and set the calendar URL in google like:
Code:
http://my.private.com/ical.php?user=joeuser
Sean P. O. MacCath-Moran (
Welcome | emanaton.com)
Triskele Media (
Welcome to Triskele Media Internet Solutions | Triskele Media Internet Solutions)