Add to calendar script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
curseofthe8ball
Forum Commoner
Posts: 73
Joined: Sun Jun 01, 2003 12:33 am

Add to calendar script

Post by curseofthe8ball »

I'm not quite sure if this is the right spot to post this, but I'll try anyhow.

We've got a calendar setup on a client's site that is controlled via a CMS with a MySQL database. We use PHP for the coding.

The client came across this "Add to calendar" function on another site and has asked us to add it to their calendar page. What this function does it simply adds the event to the users Outlook or similar mail program via a click of a link.

For example, take a look at this URL:
http://www.gustavus.edu/news/calenda...d=9294&which=e

Next to the times of the event you will see an icon that when clicked, sends the event details to your mail program's calendar.

This same type of functionality is being used on eBay's auction pages.
http://pages.ebay.com/help/buy/calendar.html

Anyone know how to do this?
User avatar
Nathaniel
Forum Contributor
Posts: 396
Joined: Wed Aug 31, 2005 5:58 pm
Location: Arkansas, USA

Post by Nathaniel »

Your first link leads to a missing page.

That said, a quick google search brought up this Google Groups message.
curseofthe8ball
Forum Commoner
Posts: 73
Joined: Sun Jun 01, 2003 12:33 am

Post by curseofthe8ball »

The link got condensed...

Click here for the link

As for the link you listed, the problem with their solution is that the events on our calendar are dynamic as they are pulled from a MySQL database so to have to create each event in Outlook and save it as a .vcs file wouldn't really be the most efficient way to handle this.
Post Reply