Archive for March 14th, 2007

Working with Strings and the Composite Pattern in PHP 5

Are you a PHP developer who wants to improve your skills in pattern-based programming in PHP If the answer to this question is a emphatic yes then you should begin reading this article now Welcome to the final part of the series Implementing the composite pattern with PHP 5. Comprised of two instructive tutorials this series walks you through the basic concepts of this important design pattern and shows you how to apply it with some 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

Zend Developer Zone: Adobe Survey for PHP Develoeprs

The Zend Developer Zone has posted about a new survey that Adobe is doing to try to get to know some of the web developers out there.

Adobe is hoping to play a little SHOW and TELL with PHP developers. We SHOW you what we are working on, you TELL us if you think we’ve got it right. Please take a minute to complete the survey we have posted here:
http://www.surveymonkey.com/s.asp?u=540413426135

If they think you’re a good match, they’ll get in contact with you. There’s also a gratuity of $150 to compensate for your time for the talk.

Continue Reading · Add comment

DevShed: Working with Strings and the Composite Pattern in PHP 5

DevShed has posted the second and last part of a series of two articles based around the Composite design pattern - using it to work with strings in PHP5.

Are you a PHP developer who wants to improve your skills in pattern-based programming in PHP? If the answer to this question is a emphatic yes, then you should begin reading this article now! Welcome to the final part of the series “Implementing the composite pattern with PHP 5.” Comprised of two instructive tutorials, this series walks you through the basic concepts of this important design pattern, and shows you how to apply it with some educational examples.

They start by defining a simple StringProcessor class as an abstract interface to build from. From there, they create two other classes - the SingleStringProcessor and the MultipleStringProcessor. Each of these takes in either a single file or multiple filenames and spits back out the value of the string and the length of the string.

Continue Reading · Add comment

Joshua Eichorn’s Blog: PHP Running on Java

Joshua Eichorn points out an interesting project in a new post to his blog today - quercus.

I found an interesting project, quercus that compiles PHP to Java Bytecode allowing it to run ontop of the Java Resin Application Server. It has a couple neat features, one being PHP6 compatible unicode support, the other being easy integration between Java and PHP code.

He gave it a shot and notes that the performance seems decent and allows you to compensate for some of the differences in the PHP API it supports and what you’re using via a Java class. According to their site:

Quercus is Caucho Technology’s 100% Java implementation of PHP 5 released under the Open Source GPL license. Quercus comes with many PHP modules and extensions like PDF, PDO, MySQL, and JSON. Quercus allows for tight integration of Java services with PHP scripts, so using PHP with JMS or Grails is a quick and painless endeavor.

It includes several extensions too, including the JSON library, APC, MySQL and Oracle support, and PDF functionality. Check out their Getting Started guide, documentation, or their wiki for more information.

Continue Reading · Add comment

Lukas Smith’s Blog: Opcode Best Practices (webcast)

In a new post, Lukas Smith mentions (among other things) an upcoming webcast via the folks over at php|architect covering the best practices of using the opcode cache in your applications.

oin us as we host PHP internals developer, Stas Malyshev (Zend) with a presentation on optimizing your use of PHP opcode caching software, be it APC, Zend Platform, or another.

This talk will cover techniques that you can use to squeeze the most performance out of your cache, such as avoiding runtime includes and conditional class declaration.

Register soon because the event happens this Friday (March 16th, 2007) and there is no cost to attend - but you do have to sign up.

Continue Reading · Add comment