Archive for February 6th, 2008

Community News: Upgrade Your WordPress to 2.3.3 (Security Issue Found)

Luke Welling reminds WordPress users that they need to update their installations to help keep them safe from a recent security issue that has come up.

If you have a WordPress blog it would be worth your time to install this update to 2.3.3, or at least replace xmlrpc.php. This is being actively exploited.

You can find out more about the exploit here on the WordPress website (including another issue with the WP_Forum plugin as well).

Continue Reading · Add comment

ProDevTips.com: Why PHP as a templating language sucks

The ProDevTips.com site has a little something to say about PHP as a templating language - “it sucks”:

I frequently read articles about why any template system made with PHP is per definition redundant because PHP is itself such a good templating engine. This is my take on this whole rant-genre.

He points out an article from the “why it doesn’t suck” sort of from Brian Lozier that he thinks “misses the heart of the issue”. He suggests the opposite, however - that PHP as a templating language (templating software written in PHP sitting on top of a PHP application) is a really bad idea. It only adds overhead that most developers, unless they’re experienced with the technology enough to know how to use it, will only work around (like the {php}{/php} tags in Smarty).

Continue Reading · Add comment

Padraic Brady’s Blog: The Zend Framework, Dependency Injection and Zend_Di

Padraic Brady has posted today about a subclass of the Zend_Loader package (in the Zend Framework) he had written up to handle Dependency Injections - it was submitted but ended up being replaced with a Zend_Di component instead.

I realised someone had proposed a novel new component called Zend_Di, and that small change was since accepted by Federico into his DI buster. This is a quick overview with very simple use cases - read the full proposal for even more gory details about your object innards using DI.

He talks about what DI (dependency injection) is and what it can be used for and includes a simple example set around a controller in the framework that uses the Zend_Di component to make a “mock Zend_Mail” that can be used in testing too. Examples of these sorts of tests (with PHPSpec) are included too.

Continue Reading · Add comment

Ed Finkler’s Blog: What I’m looking forward to in PHP6

Ed Finkler has a little PHP6-related humor posted to his blog today - some things he’s looking forward to in PHP6:

His tongue-in-cheek list includes things like:

  • Punctuation-only variable names
  • HDMI outputs
  • ASCII-art generators added to core (once CLAs are signed)
  • Improved elegance

Looking for something a bit more realistic? Check out our posts tagged with php6 to get details on what’s to come and some discussion about these new features.

Continue Reading · Add comment

Retrieving Information on Several Objects with Destructors in PHP 5

Welcome to the fourth part of the series Understanding Destructors in PHP 5. Made up of five comprehensive tutorials this series brings to you the foundations of how to declare and implement destructors in PHP 5-driven classes. And it tackles this process from a practical point of view since you ll be able to learn these methods by using copious examples….

Ruby on Rails Seminar Get up to speed on Rails at a two-day seminar in San Francisco. You’ll leave with a deployed site!

Continue Reading · Add comment