It should be quite easy to export Outlook appointments into .ics format and let third party applications like phpicalendar stitch these snippets together into a coherent view. Unfortunately older Outlook versions are not supporting ics export. After several frustrating attempts (installing VB macros that are buggy and software like freemical that misses important fields) I finally wrote my own exporter that includes also a category filter as otherwise too may entries will have to be parsed by phpicalendar.
ol2ics.zip includes the source perl script including a compiled windows version.
open(OUT,">$ARGV[0]");
print OUT ("BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//RSB//ICSCATEG//EN\n");
$b="BEGIN:VEVENT\n";
$e="END:VEVENT\n";
use Win32::OLE;
use Win32::OLE::Const 'Microsoft Outlook';
my $outlook = Win32::OLE->new('Outlook.Application') or die "Error!\n";
my $namespace = $outlook->GetNamespace("MAPI") or die "can't open MAPI namespace\n";;
my $folder = $namespace->GetDefaultFolder(olFolderCalendar);
my $items = $folder->Items;
for my $itemIndex (1..$items->Count) {
my $message = $items->item($itemIndex);
next if not defined $message;
if ( $c =~ /.*($ARGV[1]).*/) {
print OUT ("$b$s$l$t$d$c$p$m$u$e");
}
}
print OUT ("END:VCALENDAR");
close OUT;
exit(0);
The ics file may then be uploaded to the phpicalendar directory using a wput call like wput –reupload my.ics ftp://name:password@domain.de/calendar/my.ics