Jdempster - jdempster.com
General Information:
Latest News:
Object and Array dereferencing 25 Nov 2011 | 12:01 am
There’s been quite alot of talk lately about array dereferencing which I think will be included in php 5.4. Here I’ll show you a couple of tricks I use for array and object dereferencing. More detai...
Constructor Config and array_get 23 Nov 2011 | 12:00 am
Some of the functions I use daily don’t exist in the PHP core. But the great thing about programming languages is you can create your own functions. Here is handy function I’ve been using alot of lat...
jQuery Flot All Loaded Plugin 14 Oct 2011 | 03:10 am
I’ve been using Flot a Javascript plotting library for jQuery in a few projects recently. I came across the need to know when all the charts have been drawn. Thankfully Flot has nifty support for plu...
Calculating MySQL table sizes 6 Oct 2011 | 11:35 pm
Sometimes we need to know how much disk-space a table is using. Or which table is using the most disk-space. Here’s a handy query. Here’s a handy query which uses the information_schema tables MySQL ...
Warming/Loading tables into MySQL Cache 28 Sep 2011 | 09:56 pm
After restarting MySQL you’re left with a cold machine. No cache. Putting this directly back into use can leave it struggling to load data from disk again. One way of helping out is to give it some t...
PHP Tail File 28 Sep 2011 | 06:35 am
Why tail a file? Sometimes there’s a need to tail log files. This might be to store data in a more structured form, say in a database. Maybe you need to tail al log file to monitor for a certain cond...
Facebook’s “phpsh” - interactive shell for PHP 7 Jul 2011 | 02:44 am
Facebook’s “phpsh” - interactive shell for PHP: One of the best PHP shells I’ve seen. Made by the development team at Facebook. Unfortunately mostly written in python, but thats available on most sy...
PHP unix man pages 5 Jul 2011 | 04:24 am
A recent post from php.net explains a tool I didn’t know existed pman. Unix man pages of PHP functions. This little tool makes accessing manual pages for PHP functions incredibility fast. Installati...
Using strace to debug PHP 5 Jul 2011 | 04:15 am
The Problem Recently I stumbled into an issue with the PHP FTP functions. After successfully connecting to a server and authenticating, fetching a file list using ftp_nlist would return NULL. This is...