Blog Archives

Why can’t I find files written by PHP-FPM in /tmp?

Last night, I was trying to use XHProf to do a bit of profiling on¬†phpDocumentor.¬†The CLI app runs, XHProf collates statistics and writes the data to /tmp. When I fired up the XHProf web interface, it couldn’t find anything in

Tagged with: , ,
Posted in Linux, PHP

Working with pcntl_fork – part 1

I’ve been working with pcntl_fork and friends recently for a personal project. I worked with pcntl_* functions from a very early in my programming career and I love the challenges it presents for the traditional web programmer. Here is one

Posted in PHP, System

A brief reminder on object scope

Every so often, you may approach a problem in a novel or unconventional manner and it reminds you just how much ground you cover as a programmer. And today at Magma Digital was no exception. I was reminded how scope

Tagged with: , , ,
Posted in Development, PHP

WordPress: Getting a menu item selected on a Custom Post Type

I am by no means a WordPress expert. Quite the opposite in fact. While learning the ropes, I look at WordPress with a frustrating blend of admiration and confusion. I’m so impressed with both Custom Post Types and the Navigation

Tagged with: , ,
Posted in PHP, Wordpress

PHP and Nginx RPM repo for RedSleeve Linux on Raspberry Pi

You may have already noticed from a previous post that I’m a big fan of CentOS. So, I’ve spent the past few days trying to recompile some SRPMs for the Raspberry Pi. I don’t have a cross compile too chain,

Posted in Development, Linux, PHP, RasberryPi