A while back I posted a Python snippet that I noticed could be used in a few other side projects. I have since posted it to Google Code so more than just myself will know it exists: http://code.google.com/p/phpserialize/.
Tower Of Power
PHP
Make The Most Of ZendCon
I felt like I should take a break from finishing up my multi-part javascript series to rehash some points being made recently by Keith Casey and Chris Cornutt about making the most of your N-th conference (and in particular, ZendCon).
My first ever professional conference (ignoring BarCamps) was last year’s ZendCon. I showed up in Santa [...]
Development Environment Help! Setting Up PHP mail() On Windows, Or: Where Is My Windows sendmail.exe?
Lately at work I’ve been having the worst of trouble getting PHP on my workstation to send mail. Previously it was a simple trek to a website to download a Windows build of sendmail.exe, but for some reason I cannot get access to it, so I have to go another route.
Enter hMailServer, a free, full-featured [...]
Calculating Daylight Savings Time Boundary In PHP
I had an issue recently where I needed to calculate the Unix timestamp for the daylight savings time boundaries. According to the United States Naval Observatory, daylight savings time begins the Second Sunday of March and ends on the First Sunday of November.
Awkward date calculations if you don’t have the magical strtotime() function in PHP. [...]
PHP File Uploads And Background Conversion: Oopsie
So I spent an inordinate amount of time tracking down a bug recently for a former employer in a system that accepts media file uploads and converts them on the fly.
The system spawns off a small script that manages mplayer/ffmpeg/lame into the background and holds on to the PID to track the conversion process. HOWEVER, [...]
PHP, Mumbles (Growl), and DBus: Sweeet
So, after reading Mark Shuttlework’s blog on ideas for notifications in Ubuntu (basically mimicking Growl notifications for the Mac), I decided I wanted that kind of functionality, but… you know, NOW!
There are a multitude of options available but currently I’m liking Mumbles. Unlike, say, Specto, which does the monitoring itself, Mumbles provides a DBus interface, [...]
Zend Framework Module Init Script (Controller Plugin)
Well, it’s been a while since I’ve done a PHP update hasn’t it? Well alls well here in CStat, I have a quickie for you folks.
Recently at work I had the need to run a script before every single controller (namely to add a plugin folder to Dwoo) for a specific module that I did [...]
Serialize Python Variables To PHP
So I’m in the planning stages of a project where I’ll probably be doing some heavy lifting in Python and serving up the output through PHP. Obviously this will entail transmitting data between Python and PHP and while I haven’t had a chance to do performance testing to see if it’s worth it to save [...]
PHP Bacon!
Unfortunately, Elizabeth Smith mentioned on twitter that PHP 5.3’s new garbage collector is based on a paper written by a man named Bacon (pdf here). We now have Bacon’s garbage collector…
Announcing PHP 5.3: Now With More Bacon!!
Spread the meme.
Outputting CSV as a Downloadable File in PHP
Nearly every application you could write in for the business sphere in PHP probably requires some sort of data export, most likely in the CSV format.
The easiest way to provide a downloadable file is by altering the headers and echo’ing the file content. In our case:
<?php
header(“Content-type: text/csv”);
header(“Cache-Control: no-store, no-cache”);
header(‘Content-Disposition: attachment; filename=”filename.csv”‘);
We want to set our [...]

