#native_company# #native_desc#
#native_cta#

Easy Calendar Applications Page 2

By Mark Musone
on July 30, 2000

The first thing we’ll probably want to do is pull up a users calendar and display the month
view, and the event titles for any of their scheduled events:
To do this, we only need to use just a couple of mcal functions.
The first is mcal_open. mcal_open takes in a calendar string, a username and a password.
In this case, we are using:

<?php mcal_open("{/mstore}","username","password"); ?>

Calendar address strings are currently of the following form:
{servername/protocol}<username>calendar
This is the contents broken down:
  • servername – The remote server to connect to.
  • protocol – The driver protocol to use.
  • username – The users calendar to access. (i.e. john smith could be logged in
    and wants to view mary’s calendar. If this is left blank, it
    means the current user that is logged in.
  • calendar – The calendar to access.
Most of these parts can also be left out. For example:
  • {icap.chek.com}INBOX – Will open up an ICAP connection to icap.chek.com and open up the default calendar for that user.
  • {icap.chek.com/icap}INBOX – Will open up an ICAP connection to icap.chek.com and open up the default calendar for that user.
  • {icap.chek.com}<> – Will open up an ICAP connection to icap.chek.com and open up the default calendar for that user.
  • {icap.chek.com}<mary> – Will open up an ICAP connection to icap.chek.com and open up the default calendar
    for mary, regradless of the logged in
    user .
In our case, we are using the mstore driver, (since it’s a local filesystem, no hostname is necessary)
This function will return a calendar stream upon success.