|
My Holiday Calendar (.ics file generator) |
|
I was working on a Google Calendar for our ham radio club and wanted to include some holidays on it. I didn't care for the default Google Holiday offering and really wanted complete control of the holidays and descriptions. I tried modifying the Google .ics file but found that quite tedious. I decided to just write my own .ics calendar file generator and add my preferred holidays to it by taking advantage of PHP's great strtotime() function. I named it My_Holiday_Calendar.php. I saw many others on the web asking for different holiday calendars so I decided to post it on my site and let others make their own. It is a little quick and dirty coding and I am no ical expert but I have commented it pretty well and it worked great for me. Modify it, run it, and roll your own holiday calendar! Note: The code below contains some Alabama, Mississippi, Georgia, Florida, Louisiana, and Amateur Radio events which you may want to change or remove. Tip: You can set this up on your web server as a cron job that runs on January 1st, then subscribe to the file it generates (My_Holiday_Calendar.ics) as a URL calendar. This will keep it updated automatically until the end of the world! This code is for informational
purposes only. To download a .zip file with the .php
file plus an .ics file without the state and ham holidays:
ENJOY! |
|
|
|
|
| If you find this code of value, donate a little to the cause. Think of the time you just saved! |
|
USE AT YOUR OWN RISK! Feedback on this script is welcomed. |
|
Questions / Comments? Email me.
|
|
|