Filed under:
Code
CakePHP

Important! This is old code. I’ve not used it for a long time. It might still be useful. Be careful.

 

Favatars is a Wordpress plugin for displaying favicons as avatars next to blog post comments. This code is an adaptation of the original work to turn it into a CakePHP Controller. When given a URL, it will attempt to locate a favicon for that site. If one is found, it is cached and displayed. If not, it will display a default image.

By using this controller within<img> tags, favicons can be used as images anywhere within your site, without knowing their specific address. It is currently in use on this blog and favicons will appear next to post comments.

Instructions for use are included in the download. I can no longer offer support for this code.

Favatars.zip

Filed under:
Code

 

Important! This is old code. I’ve not used it for a long time. It might still be useful. Be careful.

This code parses iCalendar  (RFC 2445) compliant files into nested associative arrays. It doesn’t do the full iCal specification, as I only needed a subset of it, but the code is easily extended and should just ignore anything it doesn’t understand. It’s old and currently unused by me, but should still work!

I’d love to hear back from anyone who uses this. If you send changes, I’ll merge them into the download.

 

 

Download:

PHP iCal Parser