401 Authentication for PHP iCalendar Revisited

Posted in: Development

There was a problem with the way I added 401 Authentication to PHP iCalendar. To know if I needed to prompt for 401 authentication, I was checking for an error string that contained "401 Authorization Required". It turns out that in versions of PHP earlier than 4.3, the error message didn’t contain this string.

I’ve changed the code to check the version of PHP and if it is earlier than 4.3, any "No such file or directory" error message will result in a prompt for 401 authentication. This is less than ideal and I’m happy to hear any suggestions for improvements. The new code is in tasks 1.8.1rc2 (which I’m about to release).

Popularity: 2% [?]

Posted October 23rd, 2003 @ 2:23 PM

2 Replies

  1. alexking.org: Blog adds this Pingback:

    […] e released tasks 1.8.1rc2. Changes in this version: 401 Authentication in PHP iCalendar should now work on PHP versions earlier than 4.3. I think this fixes the bugs being […]

    October 23rd, 2003 at 2:35 pm

  2. alexking.org: Blog / PHP iCalendar Authentication Issues adds this Pingback:

    […] ar, 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 w […]

    November 22nd, 2003 at 11:04 pm

Add a Comment

Please note: Use of a non-personal web site or blog in the field below and/or comments that are off-topic, personal attacks, or support requests will likely be removed at my discretion.

Note: This post is over 5 years old. You may want to check later in this blog to see if there is new information relevant to your comment.

tasks 1.8.1rc2 released » « October 23, 2003

About This Site

This is the personal web site of Alex King, a web developer in Denver, Colorado USA. More...


Crowd Favorite

Crowd Favorite is my software and web development business.

We build web applications, design and develop custom WordPress themes and plugins, and build custom sites using WordPress as a CMS.


I also have a tumblog that aggregates my online content from other services (Twitter, Flickr, del.icio.us. etc.).

America

Ads

Get Group Health Insurance
Car Loans available here