vCalendar by PHP

Below is a PHP function that generates vCalendar which can be imported into Outlook. Notice VTIMEZONE section which specifies timezone. If this section is missing, Outlook will most likely parse the timezone incorrectly.(default to UTC)   function generate_vcalendar() { $to =

PHP debugging

I recently came cross debugging in PHP. I know from my own experience that a lot of people are still using echo/print, var_dump to debug code. Nothing wrong but sometimes when you scratch you head wondering what’s inside that tiny