Category Archives: PHP

Pro Tip: Installing PHP 5.2.9 on CentOS

CentOS in my opinion is the best way to go in terms of server distros. Some people, including myself, are frustrated at the fact that some software is slow to be updated out of a fresh install: specifically PHP. At the time of this writing, PHP 5.1.6 is the version shipped with CentOS 5.4. While I’m sure they have their reasons for this, we still have to write our applications effectively — 5.1 just doesn’t cut it anymore Continue reading

Posted in PHP | 10 Comments

Ajax for PHP Developers

Earlier this week I gave an Ajax presentation for NYPHP. It felt a little strange presenting a JavaScript topic to a bunch of PHP developers, but I made it come back to PHP by demonstrating a the latest Panda PHP … Continue reading

Posted in Code, JavaScript, PHP, Talks | 1 Comment

Rolling Your Own MVC: The View

Welcome to the third part of my series on MVC framework development. In the previous two articles, I discussed the general feature set that our framework will have and I also gave an overview of the page load scenario. In … Continue reading

Posted in PHP | Tagged , , , | 3 Comments

Rolling Your Own MVC: The Page Load Scenario

In my previous article, I announced that I would be documenting the process of developing a simple MVC framework. In this post I will go into a little more detail about each of the specific components of our MVC and will … Continue reading

Posted in Code, Design Patterns, PHP | Tagged , , , | 8 Comments

Rolling Your Own MVC: Introduction

2007 was the year of framework development for PHP. Cake, Code Igniter, Zend, Solar, Symfony, and piles more began to really get some well deserved attention. Today, you can throw a rock and hit a half dozen production-ready frameworks that … Continue reading

Posted in Code, Design Patterns, PHP | Tagged , , , | 4 Comments

One Step Closer to an Abstract Singleton

The singleton is an incredibly useful pattern in PHP for many reasons. I tend to find myself using them when I know I should be using static classes, but can’t because of PHP’s lack of proper class name discovery in … Continue reading

Posted in Code, Design Patterns, PHP | 3 Comments

FIEO with PHP 5 Interceptors

Note: Before getting into this, it may be easier to just download the file, run the code, then read this post. Thanks to the efforts of Chris Shiflett and other PHP security experts, Filter Input/Escape Output (FIEO) is now a … Continue reading

Posted in Code, Design Patterns, PHP | 8 Comments

The Abstract Collection

I discovered something cool the other day while playing around with a PHP class that was designed to hold a bunch of items of a certain type. Essentially it is a way to get around PHP’s lack of strict type … Continue reading

Posted in Code, Design Patterns, PHP | Leave a comment

The No-Image Redesign

It’s a programmer thing. You designer-types wouldn’t understand. I’ve actually been sitting on this layout for quite some time now but didn’t really want to have to deal with skinning WordPress. With the last layout, I just used the header … Continue reading

Posted in Code, News, Opinion, PHP | 1 Comment

“0″ is not Empty

PHP offers a nifty thing called “silent type conversion” which allows data of different types to be easily compared with data of different types. This is cool because I can say that the integer 1 and the boolean true can … Continue reading

Posted in PHP | Comments Off