PHP iCalendar and 401 (.htaccess) Authentication

I get by far the most support questions about trying to view the Tasks Jr. iCalendar in the included PHP iCalendar.

I hacked some 401 authentication support into PHP iCalendar, but it doesn’t work for some people. I think it depends on server config and PHP version.

One solution is to go into the PHP iCalendar config file and add the Tasks Jr. iCalendar with your username/password to the ‘$list_webcals[]’ setting. It should look like this:

$list_webcals[] = 'http://username:password@www.example.com/tasks/ics.php';

After you do this, you then need to open the calendar.php page and uncomment line 13 as noted:

// $URL = $custom->ical_URL."month.php?getdate=".date("Ymd");

to this:

$URL = $custom->ical_URL."month.php?getdate=".date("Ymd");

The ‘Tasks Jr. Webcal’ should show up in the drop down of Calendars.

Previous Page | Table of Contents | Next Page

Last Modified: June 27, 2007 @ 9:53 am