Lennart Ericson
asked on
How to add a notification in a calendar
I've got a booking script. I'd like to get a notification in the bookers calendar, being it MS Outlook calendar, Google Calendar or any other popular caledar. I have very little experience in this field and seek basic "how to" information".
Serverside language: php.
Serverside language: php.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you! Sorry for not having responded eaarlier.
Regards
Lennart
Regards
Lennart
You may be able to use PHP to force a download of a file with the ics file suffix. The client's computer may associate the .ics files with a calendar program. This file extension is used for calendaring and scheduling information.
The MIME type for iCalendar data is text/calendar.
I've done this in the past with an "add this event to my calendar" link. The link went to a PHP script and it had a URL parameter giving a key to the calendar entry. The PHP script used the key to locate the event row in the calendar database table. It generated an iCalendar object, which is a simple text file like this (thanks, Wikipedia)
Open in new window
If I can find a code example for this, I'll post it here and update these articles about handling date and time in PHP.https://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL-Procedural-Version.html
https://www.experts-exchange.com/articles/20920/Handling-Time-and-Date-in-PHP-and-MySQL-OOP-Version.html