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.
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 windowIf I can find a code example for this, I'll post it here and update these articles about handling date and time in PHP.