Today I want to talk about daemonizing PHP scripts on Linux servers — creating scripts that are meant to run in the background for long periods of time. After we’ve covered that, I’ll explain how I like to use supervisord to manage these long-running PHP processes.
Read the rest of this entry »
PHP offers a convenience superglobal called $_REQUEST that coalesces input from a number of sources into one easy to use array. A common thought amongst PHP developers is that you should avoid the use of $_REQUEST — but do you actually know why? Read the rest of this entry »
A friend of mine who is rather new to PHP was getting super confused about timestamps and timezones. So I thought I’d post a quick thought about timestamps today to clear up some confusion. Read the rest of this entry »
Today I want to talk about best practices in regards to reading user input. And if you haven’t already, I’m going to convince you why using PHP’s superglobal arrays are bad. Read the rest of this entry »
If you talk to me regularly then you already know how much I love stream wrappers in PHP. The other day I was positively giddy with how easy it was to solve a particular problem by using stream wrappers. Read the rest of this entry »
Now that I’ve already covered what Unicode is in another post, it’s time to talk about actually using it. Today I’ll talk about how to create PHP applications that correctly handle Unicode. Read the rest of this entry »
A few days ago I went and registered the domain dashto.cc and created a really quick-n-dirty URL shortening site. Read the rest of this entry »
One of the first books to be published on the topic of Zend Framework was php|architect’s Guide to Programming with Zend Framework (Amazon). If you’re looking for an “in” into ZF then — eh, well, skip this book. Read the rest of this entry »
I get asked about this a lot. Why did I take the PHP Certification exam? What does it do for me? Was it hard? Read the rest of this entry »
I’ve been using the Zend Framework a lot lately and have come to really appreciate it. Today I want to write about ZF and how to use the MVC components. This post will be all about ZF itself, how the MVC components work, and getting a simple example up and going. I will write another post later on some more advanced usage. Read the rest of this entry »