Archive for March 13th, 2007

Introducing Mediator Classes in PHP 5

The mediator design pattern can help you achieve and maintain synchronization between a group of PHP classes. In this first of a two-part series you ll be introduced to the mediator pattern how it functions and how it can help you with your application development….

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

Zend Developer Zone: PHP Security Tips #8 & #9

The Zend Developer Zone has the latest two of their security tips posted today - numer #8 and #9 - in their “PHP Security Tips” series.

  • In tip #8, they restate and reinforce a topic that’s worth repeating - validating user input. They use the filter_var function as a simple, light way to start filtering your user’s input.
  • Tip #9 suggests that you keep anything sensitive, anything at all that needs to be kept away from prying eyes, outside of your document root of the site.

You can check out more on these tips and lots of others in their full list of tips.

Continue Reading · Add comment

PHP-GTK Community Site: New PHP-GTK forums

The PHP-GTK Community website has an announcement about the launch of a new PHP-GTK related forum at http://phpgtk.opsat.net/.

Another PHP-GTK forums site has sprung up […] to provide a very informal environment, where posting will not need registration, or the use of a real identity. The site currently offers 3 PHP-GTK sections, and one general section.

The forum is also linked to back and forth with the PHP-GTK Community site whenever a a cross-post is made from the forum.

Continue Reading · Add comment

DevShed: Introducing Mediator Classes in PHP 5

DevShed starts off another design patterns series with this new article introducing the Mediator class pattern - a method to keep things up to date and synchronized in your PHP application.

Well, in this case, the synchronization between a group of PHP classes can be made by implementing a useful pattern widely known as “mediator.” In short, when the mediator pattern is applied, there’s a single class that implements the logic required to keep all the other classes completely synchronized with each other. This means that not only will all the modifications introduced by one class be reflected in the others, but that those changes will be performed via the interface of the mediator class.

They Apply this pattern with their traditional example of working with files - this time the class will handle the communication (and syncing) between two file handling objects. They add a file handling class on to the back end and apply them both in an example that lets you manipulate the data inside both files at the same time.

Continue Reading · Add comment

Dotvoid.com: Zend Feed for a Swedish web development blog aggregator

In a new post to his blog today, Danne Lundqvist shares his method for creating a blog aggregator (in the style of the planet-planet sites) to re-aggregate all of the feeds back ou tinto one.

Lately I have begun to get more and more annoyed with my feed reader. I use a simple feed reader which lack most features except for subscribing to and reading feeds. The one thing that annoys me the most is that it can’t aggregate several feeds into one feed. Yesterday I finally decided to scratch that itch.

His method uses the Zend Framework to accomplish the goal - and “the whole website logic (both model and controller) is about 200 lines of code”. There’s no exception or error handling in it, but it works and the Zend_Feed module works well to grab just about any kind of feed.

Continue Reading · Add comment