While CodeIgniter provides a disk caching mechanism, it lacks a browser caching mechanism. Without a lengthy introduction, here's one.
Tagged: php
Browsercache.php: A simple browser-cache-handling library for CodeIgniter
Tags:Add "desktop version" and "mark all as read" links to Tiny Tiny RSS mobile plugin
Tags:I installed Tiny Tiny RSS on a server of mine, and after tinkering around with it for a little while, I turned on the built-in mobile plugin. It's a wonderful little thing; it uses the iUI library to present a slick, single page …
WordPress plugin minify Makefile
Tags:While working on my first commercial WordPress plugin, the need for build automation finally struck me. The environments in which I do my most development are all driven by Linux, and so I wanted to use a tried, true, and ubiquitous build …
Add password maintenance feature to cgit with PHP
Tags:Have you ever wanted to have a nifty, browser-driven password maintenance feature in your htpasswd-secured cgit site? I've been meaning to build this for a while—and I finally did it.
Using cURL for parallel PHP without pcntl_fork
Tags:So, you want to do some parallel processing in PHP (alliteration FTW!), but your service provider does not grant you access to the pcntl family of functions*. What do you do? If you're in a *nix environment with access to the curl command …
What's My Status v1.2 released
Tags:My WordPress microblog feed widget recently went through another update. This time around, I've added the ability to filter out replies and re-posts ("retweets" in Twitter lingo, "redents" in identi.ca speak) from your …
What's My Status? v1.1 released
Tags:My microblogging feed widget for WordPress, What's My Status?, has been updated. The plugin now uses curl for its main retrieval mechanism, with standard URL fopen as the fallback. Additionally, the Reset cache command has been fixed. You …
Selective backup/copy script for moving files into production
Tags:Whenever our web site needs to undergo re-branding, there is always the hassle of creating both the selective package of files to move into production from development and the selective back-up of the necessary files already on the …
Create anchor links in Twitter status text with PHP
Tags:In a previous blog post, I outlined how to convert Twitter @mentions, #hashtags, and URLs (with or without protocol prefixes) into anchor links using JavaScript. Here is that same process wrapped up in a PHP function instead for your …
What's My Status? v1.0.0 released
Tags:My first officially-recognized WordPress widget, What's My Status?, has been released! It is a widget for displaying a given user's status feed from identi.ca, Twitter, or any other service that provides a Twitter-like API. There are …
Help! I can't delete phpMyAdmin's setup.php
Tags:I've got a VPS server running Debian 5 "lenny" and recently attempted to perform several software upgrades to bring it up to speed (it had been longer than I care to admit). However, the upgrade for the phpMyAdmin package …
Fix CodeIgniter IP address detection on lighttpd
Tags:If the results of a call to $this->input->ip_address() gives you "0.0.0.0" (the "invalid address" response) and you're running lighttpd as your web server, you may be able to fix it with a minor tweak to by …
URL rewriting template engine
Tags:My employer is currently in the process of standing-up a content management system (CMS). In the process of migrating links on our existing site to the new CMS site, there are going to be—at least, at first—a metric tonne of possible URL …
WebFOCUS Impact Analysis report compactor
Tags:Here's a little script I whipped up to combine several Impact Analysis reports generated by WebFOCUS Developer Studio. The script opens HTM-formatted IA reports, skims the data, and then concatenates it all in one CSV-formatted output …