The Switch: Apache + Mod_PHP to Nginx + PHP-FPM

File this under “another thing I should’ve done ages ago.” I decided that I should explore the world of Nginx as a web server since many people have been telling me it’s good. And all I can say is holy shit, it’s good. The setup was simple and after a few idiotic mistakes on my […]

Just a Log

Applications, especially ones that run over and over again with zero persistancy (of the application itself) like a web app needs logging. It’s important to be able to log different types of messages to different places and fortunately Zend_Log is so extensible that it can log to almost anything you can think of. My typically […]

Queueing With Zend Queue and MemcacheQ

I was bored last night so I thought I’d enhance one of my applications with a little bit of Queueing. (And for the record both Queueing and Queuing are valid spellings depending on your locale) The concept is fairly straight forward. Normally when a web application runs, it runs in a linear pattern. It starts, […]

Tell Your Redirector How to Do It’s Job

There’s a big difference between a redirect that uses a 301 and a 302 code on a website. If you don’t know the difference, you should find out. 301 says “This stuff has moved permanently and you shouldn’t come here anymore.” 302 says “You just need to go here, but this place will still answer […]

Database Profiling with Zend Db Profiler Firebug

I don’t know why I haven’t been using this for ages. But Zend’s DB Profiler is fun. Only to be used in development so you can see what your database is doing and how fast/slow it’s doing it. Enable it in your application’s config.ini (or .xml) [development] db.profiler.enabled = true db.profiler.class   = “Zend_Db_Profiler_Firebug” And as […]