PHP iCalendar and 401 (.htaccess) Authentication
I get by far the most support questions about trying to view the tasks 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 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 Webcal’ should show up in the drop down of Calendars.
Last Modified: November 25, 2003 @ 2:39 am