-
Getting Dates From Week Numbers in PHP
22 March 2011
Read moreRecently I've been building a little project that pulls data from Google Analytics and shows your web statistics in a simple form. One thing I wanted to do was show the data for a quarter, but graphing by day is too chaotic and graphing by month only gives three points …
-
Github To Jira Bug Migration Script
09 March 2011
Read moreRecently I mentioned the github API and retrieving issues from it. This is because the joind.in project agreed to move its issue tracking from github to JIRA, since the issue tracker on github is far from feature complete. I migrated only our open issues, and comments (and the comments ended up a bit weirdly formatted on the other end but this was the best they could do). It was nothing pretty or clever but in case it's useful to someone else, here's the script:
-
The PHP Community Conference
07 March 2011
Read moreNext month, I'll be heading out to Nashville for the PHP Community Conference. This is wildly exciting for a few reasons; this is the first in what I hope will be many episodes of this event, and I'm speaking in a lineup that blows every other conference schedule I've seen …
-
Dealing with MySQL Gone Away in Zend Framework
01 March 2011
Read moreI wrote recently about having gearman in my application, however I have been seeing problems with the long-running PHP worker scripts. My logs had entries like this:
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
The worker is a Zend Framework application, run from the CLI, and it …
-
A Tale of Two User Groups
28 February 2011
Read moreThis post is probably only relevant if you're interested in PHP and UK-based. In the next few weeks I'll be at some user groups that I don't manage to visit often. On Thursday, 3rd March, I'll be at PHP East Midlands to talk about Design Patterns. On Tuesday, 12th April …
-
PHP Days and PHP Unconference Europe
24 February 2011
Read moreI spend most of the last week or so over in Manchester for a combination of excellent PHP-related events: PHP Unconference Europe on Saturday and Sunday (with a rather excellent warm-up party on Friday night!), followed by the PHP Days training on Monday and Tuesday.
-
Using Gearman from PHP
16 February 2011
Read moreI've introduced Gearman into a project I'm working on, and since a few people have asked I thought I'd share my experiences. Basically, this application generates some PDFs from a variety of data sources, makes images, and emails it. Since the whole data processing, image handling, PDF generation process is fairly heavy, I'm putting the requests to generate these onto a gearman queue and having some workers process the jobs. The eventual aim is to bring up EC2 instances (or php-specific cloud hosting perhaps? Recommendations gratefully received!) to do this work but right now I have one worker and it's all on one server.
-
Callbacks in PHP
14 February 2011
Read moreRecently I was working on something and I wanted to call an object method as a callback, but got confused when I realised the method had been caused statically. This was caused by my inability to RTFM and I wondered how I'd come so far without actually coming across the many and varied things you can pass into any place a callback is needed. I think we've all seen a function callback; something like this:
-
27 Ways To Be A Better PHP Developer
02 February 2011
Read moreLast weekend I was at the PHPBenelux 2011 conference in Antwerp. As conferences go it was pretty awesome, completely surpassing my expectations in many ways! The schedule was published in advance but I somehow forgot how many friends I have in that part of the world and what a wonderful …
-
Number System Primer
27 January 2011
Read moreI regularly teach the Zend Certification course and one thing that really splits those with a Computer Science background from those without is handling number systems other than decimal. Personally I don't see it as a major omission, I certainly don't work with those systems very often in web development! However, ZCE includes decimal, binary, octal and hexadecimal numbers in its syllabus, so I always make sure to stop and teach it. Here's a quick round-up of how they work:
-
Preparing for ZCE 5.3
20 December 2010
Read more|image1|Recently I have been getting to grips with the ZCE since it was updated to take account of PHP 5.3. In the last few weeks I've both passed the certificate myself and also taught Zend's certification training course as a classroom course at NTI Leeds. I thought I'd share my top tips for preparing for taking the ZCE - getting to the standard, last-minute preparations, and also some tips for surviving the day itself (disclaimer: everyone sitting the ZCE signs a declaration not to disclose the contents of the exam, so I can't actually tell you the questions, sorry!)
-
ZCE 5.3: Worth Doing?
14 December 2010
Read moreI recently took (and passed!) the ZCE 5.3 certification. I've been a Zend Certified Engineer (5.0) for nearly 3 years, and I know a lot more about PHP today than I did then. Today I speak and write various things related to PHP, and also teach all sorts of topics including PHP certification. I thought I'd share my thoughts on the ZCE, and I'll write a follow-up post on how to prepare for it.