Archive for March 9th, 2007
PHP Developer - March 9th, 2007
In a new post on the Zend Developer Zone (by Daniel Vecchiato) pointing out a new tutorial that combines the Zend Framework with another framework, CodeIgniter, to enhance each’s power.
The tutorial (Using Zend Framework components in Code Igniter) will introduce you to an easy way to integrate the Zend Framework libraries (a lot!) into Code Igniter PHP Framework.
In particular we will build an example in which we use the Zend_Service_Flickr to retrieve images based on a specific tag (’climbing’ in this tutorial).
The tutorial steps you through a quick installation of the Zend Framework, but assumes that you already have CodeIgniter installed. Then it’s a simple matter of combining the two, extending the Zend Flickr service client and grabbing photos related to “climbing”.
Continue Reading ·
PHP Developer - March 9th, 2007
Continuing their look at design patterns, DevShed has kicked off yet another series today spotlighting the Composite pattern as used in PHP5.
The composite pattern is one of the less commonly used patterns in PHP 5. Nevertheless, in certain situations, it is very helpful. This article, the first one in a two-part series, will introduce you to the basic concepts of the composite pattern.
The composite pattern allows you to define a single or multiple objects that will have identical behavior - basically behaving the same if there’s just one or with the multiple instances. They start with the basics, reaching for one of their standard examples - a file information reader - to illustrate their point. They create the two helper classes it needs to work, one for the single file read and another for the multiple file read. The finish by combining them all together for a file-reading fiesta, showing how to get a one shot info dose as well adding files to the list and grabbing their info all together.
Continue Reading ·
PHP Developer - March 9th, 2007
Edin Kadribasic has released another build of the latest MySQL libraries to couple with the latest PHP release in the PHP 4.x series (4.4.6).
PHP 4.4.6 was released to fix a serious problem in the session module. Here, you can download the Windows build with updated MySQL libs.
The download contains two files that should be dropped into your existing PHP directory.
Continue Reading ·
PHP Developer - March 9th, 2007
In an effort to somewhat unify the authors of the wide range of PHP database abstraction layers out there in the community, Lukas Smith has proposed a “doctrine miling list” for the discussion of things “like best practices, new discoveries, challenges, etc”.
Now I am hoping that all of you are reading this. I know quite a few of you pretty well already (John, Hans, Manuel etc.). […] So please everybody come out of the woodwork, send me a mail or post a comment.
While I think its fine for end users to also join the list, the goal is not to create a list for end users to ask questions, but more for people who actively develop database abstraction layers. End users should better go to the respective mailing lists.
Ian P. Christian has already stepped up to the plate and is offering a mailing list that you, the database abstraction developer can subscribe to - mailto:phpdbabstraction+subscribe@lists.pengus.net. Be sure to check out the comments for more great discussion.
Continue Reading ·
PHP Developer - March 9th, 2007
Ivo Jansch discovered something interesting by way of an applicant’s resume - a hidden “trick” that PHP pulls on the user when they try to use a Java-like syntax with System.
So yesterday I was reviewing a code sample that a job applicant had written during a test and I encountered the following line of code: It’s not hard to guess what his background was
, but I was initially stunned that this actually works in php.
After a little investigating (and ruling out the Java Bridge), Ivo found that the line was being interpreted literally and was just being handled as a string instead of a constant. He gives two other examples to help with clarification.
Continue Reading ·