I have seven different mailboxes with seven different calendars in Microsoft Exchange server. The set is: Win98 + OmniHTTPD server + PHP4 + Outlook 2000 + Microsoft Exchange Server (in a different server).

I would like to code PHP program which prints all seven calendars in one html-page, but I have these little problems...

1) How can I create and print calendar events with PHP and Exchange server?
- Should I do it with COM functions or maybe with IMAP? (IMAP doesn't provide functions to calendar events)
- Article "COM Functions in PHP4 (Windows)" didn't help me much with COM functions and Outlook 2000.
- How COM functions work with Outlook 2000?
2) There is a possibility to do this with Linux server and Apache+MCAL (ICAP). Is it easier this way and is MCAL and ICAP even possible with MS Exchange server?
3) If there is a easy alternative way to do this I'm very interested about it!

This was very difficult to explain but I hope that even someone understood what I ment!

Thanks in advance,
Tero Tähtinen
tero@tahtinen.net

This is what I have tried to code if it helps someone (it DOESN'T work at all):

--- clip ---
<?php

/ Open mapi and outlook session /
$session = new COM("MAPI.Session") or die("Unable to instantiate Mapi.Session");
$outlook = new COM("Outlook.Application") or die("Unable to instantiate Outlook");

/ Print Outlook version. THIS WORKS !!!! /
echo "Loaded Outlook, version ".$outlook->Version."<BR>";

/ Nothing under this line work. Except $outlook->Quit(); which
closes Outlook 2000 client if it is open
/
$outlook->CreateItem(olAppointmentItem);
$outlook->CreateItem(ItemType)
$myitem = $outlook->CreateItem($olContactItem);
$myitem->MeetingStatus = $olMeeting;
$myitem->Subject = "Strategy meeting";
$myitem->Location = "Conference room B";
$myrequiredattendee = $myitem->Recipients->Add("Tähtinen _ Tero");
$myrequiredattendee->Type = $olRequired;
$myitem->Start = "9/24/97 1:30:00 PM";
$myitem->Duration = "90";
$myitem->Send;

$outlook->Quit();

?>
--- clip ---

    Write a Reply...