|
Easy Calendar Applications
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
{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.
[ Next Page ]
| Comments: | ||
| RE: Appointment Calendar | sasmita | 05/13/08 03:43 |
| RE: Appointment Calendar | sasmita | 05/13/08 02:33 |
| Appointment Calendar | Mr. Wright | 05/12/07 21:29 |
| RE: Respuesta PHP calendar | wester | 12/22/05 01:43 |
| tan'ks | agus | 09/30/04 22:34 |
| correction to addeventaction.php3 | Ricardo Pacheco | 09/11/03 07:50 |
| Hello | Nicko McBrain | 06/16/03 22:21 |
| plzzzzz help meeeeeeeeeee | wassi | 08/31/02 19:34 |
| fusebox calendar | Eric Wolfe | 08/23/02 14:44 |
| tecnologia | tecnologia | 05/07/02 19:57 |
| RE: How to compile | Kevin | 05/02/02 04:42 |
| Respuesta PHP calendar | calendar web PHP | 04/29/02 14:55 |
| path to mySQL en mySQLDump | mrpsycho | 04/05/02 12:53 |
| How to compile | Phani | 03/26/02 04:42 |
| mstore | Joel Mampa | 03/18/02 02:36 |
| MySQL trick | imamferianto | 12/10/01 10:30 |
| Which is better? | Banu | 12/10/01 06:15 |
| RE: Fatal Error | Glen Scott | 10/24/01 03:50 |
| Fatal Error | Steven C | 09/24/01 18:42 |
| RE: can i use windows for this? | Bill | 05/20/01 21:44 |
| can i use windows for this? | cool_kat | 04/06/01 02:55 |
| RE: where can I get an icap server? | jmp | 03/17/01 12:47 |
| where can I get an icap server? | Kevin Baker | 02/06/01 19:19 |
| Insecure! | John Adams | 02/01/01 06:45 |
| Work this on windows | Neville | 01/25/01 03:22 |
| Documentation is Horrible!!!!!!!!!! | Patrick O'Lone | 01/19/01 03:44 |
| RE: the big picture? | yusuf | 12/26/00 02:52 |
| Navigation arrows | Chris Thompson | 12/04/00 21:53 |
| RE: Where do i get MCAL library?! | Chris Thompson | 12/03/00 20:03 |
| RE: Where do i get MCAL library?! | Joe | 11/24/00 11:31 |
| RE: Where do i get MCAL library?! | SoNix Hedgehog | 10/20/00 00:11 |
| What kind of reminder that the alarms alarm m | cheng | 10/19/00 11:15 |
| RE: Where do i get MCAL library?! | nono the french | 10/16/00 05:23 |
| Where do i get MCAL library?! | giridhar | 10/08/00 16:21 |
| the big picture? | Ron Donnelly | 07/10/00 21:40 |
| RE: Can't open stream | Raul Guillen | 07/06/00 17:04 |
| Can't open stream | Nathan Rollins | 06/27/00 13:35 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


