Category Archives: PHP
List of Ideographic Countries
I needed a list of countries where ideographic languages are common, but couldn't find a pre-made one. I was able to build one myself, though, which will hopefully save others from having to do the same.
Unexpected Results When Adding Months To a Date
Creating Admin Notices From a WordPress Plugin
BackPress PHP Library
BackPress is a useful project that packages the re-usable code from WordPress into an independent library you can use in non-WordPress projects.
FastCGI errors after PHP upgrade
Unit Testing WordPress Plugins
Performance Improvements for Dedicated WordPress Servers
Mark Maunder benchmarked several performance tuning measures with a WordPress installation on a VPS server to show which are most effective. The biggest improvements were from installing PHP-APC, setting up Nginx to proxy concurrent connections for Apache, and using MySQL’s query cache.
Parse Error When Installing WordPress 3.2 on a PHP4 Server
This is the error you’ll get if you try to install WordPress 3.2 on a PHP4 server:
Parse error: parse error, unexpected T_VARIABLE in /path/to/your/directory/wp-includes/load.php on line 566
It’s because the clone keyword doesn’t exist in PHP4.
Using Chained Properties Inside $wpdb->prepare()
Getting a Blip.tv Thumbnail from the Embed URL
PHP Error Logs with Virtuozzo
Natural Sorting for MySQL
Passing dates and times between PHP and MySQL
Richard Lord wrote a good article explaining the various ways of handling dates and times with PHP and MySQL.