November 17, 2009
I’ve blogged twice recently about sorting an array of structures in ColdFusion, using both pure CF, and dipping into Groovy. This time we’ll look at how we can easily do the same task in PHP. In this post I will take the same problem, a complex array containing a structure (in PHP, an associative array), [...]
May 27, 2009
In my ongoing effort to further enhance my PHP framework I started recently working on a caching mechanism. For the time being I am using the PEAR library’s Cache_Lite (I’ve blogged on this before, so check it out) to handle the details of persisting the cache data, locking, and all that fun jazz. Cache_Lite, however, [...]
February 2, 2009
As programmers we should always strive to better ourselves by improving our craft by taking pride that what we build is not only useful, but can continue to be useful for a long time to come. Part of this strategy involves writing code that exhibits resuse, high cohesion, and loose coupling. Therefore every developer should, [...]
September 5, 2008
If you’ve ever used PHP, you’ve probably used, or at least seen, the PRINTF and/or SPRINTF functions. These oldie, but goodie, functions are stolen… err… borrowed from the old C language world. Both functions support the abililty to have placeholders, which when evaluated, are replaced with the value in a comma-delimited list in the appropriate [...]
April 6, 2008
For those PHP programmers out there new to the language I have posted a new tutorial (just a little one ) on how to store and retrieve complex objects (classes) in PHP session ($_SESSION). You can find it under Software Development, or go straight to it here. Cheers!
October 16, 2007
Yes, ladies and gentlemen, I have started learning how to write WordPress plugins. My first plugin is one that removes the word “Private: ” from the beginning of blog and page titles (when they are saved with a status of private).
The way this works is by creating a function that takes one argument. I then [...]
May 30, 2007
For many web application developers the concept of caching is foreign. Most of us build our pages, query our databases, and spit out the results. This is usually sufficient as the content is entirely dynamic. There are times, however, when the data, although not static, doesn’t change very frequently, and can benefit from caching.
Caching can [...]