WordPress Plugin – Further deveopment
Now that I have a very simple working plugin it’s time for a little clean up. Before I start adding addition functions and build additional features in messy procedural style it makes sense at this...
View ArticleWordPress Plugin – Database integration
The next step with the plugin is to add some database integration so the plugin options can be stored in the WordPress database. This is really simple as the API provides funtions for this in the form...
View ArticleWordPress Plugin – Admin options page
The next step following the database integration is a simple settings page to change the plugin options. This is achieved with another hook to add an item to the menu in the admin area: [code...
View ArticleWordPress Plugin – Final tweaks
The plugin is now pretty much finished, there are certainly other options that could be added such as page summaries via AJAX, custom image sizes for specific preview etc but for now the only thing...
View ArticleWordPress plugin for Thumbshots.org/Thumbshots.com website previews
I have now published my Thumbshots plugin for WordPress which is available here.
View ArticleToday is a confusing day for 32 bit PHP
As many people probable know, there are some glaring inconsistencies between 32 bit and 64 bit PHP, especially when it comes to large numbers and floats. For some reason, best known to the PHP...
View ArticleWeb server benchmark PHP – Apache vs Nginx vs Lighttpd
This is a quick benchmark of the 3 major *nix web servers, to see which gives the best performance. Test system: Hardware: vps247 cloud VPS node, 512Mb ram. Software: Ubuntu 10.10 RC (kernel...
View ArticleThe most awesomest design pattern, ever to exist and that ever will exist!
At my current day job, someone came up with this design pattern and has implemented it in almost every class throughout the entire application, there are probably close to 100 implementations of this...
View ArticleNew features in PHP 5.4
The next iteration of 5.4 looks like it’s more focused on cleaning up the language than features. It appears many of the previously deprecated functions are now, as promised, removed completely. As...
View ArticleRecursively remove/delete a directory in PHP using SPL components
File system management is not the most common use case for PHP, but in writing a command line tool today I was surprised to find that PHP doesn’t have a function to recursively remove a directory (I...
View Article