Archive for February 7th, 2007

Using Abstract Factory Classes in PHP 5 to Work with Online Forms

Any PHP developer who has worked with pattern-based programming in PHP for a while knows that the abstract factory pattern is useful for building classes that return to client code objects whose type depend on the content where they re used. Welcome to the final installment of the series Using abstract factory classes in PHP 5. If you re interested in learning the key concepts of this helpful pattern this three-part series will teach you how to apply it by developing numerous educational examples….

Refurbished and Used Networking Equipment Network Liquidators sells refurbished and used networking equipment for up to 95% off list, with a 1 year warranty. We buy and sell top brands like Cisco, Extreme, Foundry, and more. Call us for best pricing.

Continue Reading · Add comment

SecurityFocus.com: PHP Security From The Inside (Interview with Stefan Esser)

Over on the SecurityFocus website, there’s an interview posted with Stefan Esser of the Hardened-PHP Project (as interviewed by Federico Biancuzzi.

Federico Biancuzzi discussed with him how the PHP Security Response Team works, why he resigned from it, what features he plans to add to his own hardening patch, the interaction between Apache and PHP, the upcoming “Month of PHP bugs” initiative, and common mistakes in the design of well-known applications such as WordPress.

Some of the topics discussed include

  • the Hardened-PHP Project
  • Suhosin
  • the PHP Security Response Team (his role in it and why he left)
  • PHP5’s security focus versus PHP4’s
  • and more…

Check out the full interview to have all of your questions answered.

Continue Reading · Add comment

International PHP Magazine: Poll Question: What is the Top Mistake That PHP Coders Commit?

The International PHP Magazine has posted results from their latest PHP community poll as voted on by visitors to their site. The question for this poll asked developers what they thought, of the choices on the list, was the most common mistake that PHP developers make.

Coming in at number one by an overwhelming lead was “Not escaping entities and SQL input” (a definite problem indeed) with the next highest option, “Not using a Framework” a full twenty percent lower. The next two options were closer (descending) - “Using old PHP versions” and “No or little use of Object Orientation”.

There’s a new poll this week for your consideration - this time asking which stage, of the five options, should come first in the development cycle of a typical content management system. Head on over and cast your vote today!

Continue Reading · Add comment

IBM developerWorks: A step-by-step guide to publishing your own PEAR channels

As mentioned over on the Zend Developer Zone, the IBM developerWorks website has posted a a new tutorial with a hand-holding guide to the creation of your own PEAR channels.

This tutorial discusses channels, introduces and explains the channel.xml file, and demonstrates how to build a channel for distributing packages. Channels are ordinarily used to expose PEAR packages through the Internet, but enterprises can uses channels to make distribution of enterprise-specific PHP code easy.

You’ll need to log in to the IBM developerWorks website to get to the good stuff (you do have a login, don’t you?), but once you do, you’ll find a guide that goes through:

  • what PEAR is and what PEAR channels are
  • channel management (including the channel.xml file)
  • building the XML-RPC methods
  • publishing the channel
  • installing and upgrading a test package
  • and some troubleshooting hints and further resources

Continue Reading · Add comment

Windows Skills Blog: Using SQLite as a database backend for a lightweight server

On the Windows Skills blog, there’s a new post that talks about the use of a SQLite database (via PHP) to handle the assault that Digg.com can dish out to a popular webiste.

Physical memory was limited and Apache and MySQL soon started to fight for every remaining byte and eventually the page was unavailable.
After this experience I started to look for a alternative for the database storage and I found an interesting one: SQLite.

He mentions some of the features the database has including zero-configuration, a simple API, and the portability of having a single database in a single file. The next step was getting it to work with his Apache/PHP5 installation and to run some statistics on it. The results show SQLite pulling ahead of MySQL (INNODB) by a bit and MySQL (MYISAM) by a good bit.

Continue Reading · Add comment