PHP Developer - October 4th, 2006
In his latest blog post, Mike Potter shares some about a simple Flex application he’s constructed that’s now contained in the PHP RIA SDK from Adobe.
I have created a sample Flex application that lets you browse your MySQL databases and allows you to do simple filtering on that data. The application is part of the PHP RIA SDK by Adobe that I’ve updated today. It also includes some new samples and libraries, mostly done by community members.
He notes that it’s not meant to be a replacement for things like phpMyAdmin, but it does have its place.
Continue Reading ·
PHP Developer - October 4th, 2006
The Zend Developer Zone has a quick post about the arrival of a handy tool for working with simple testing on your PHP script - the phpt generator.
Etienne Kneuss has finally finished his phpt generator. So if you need a basic phpt test for a function (or the entire PHP library) - don’t write it. Be lazy, click a few buttons and back to chatting on IRC you go.
Etienne is also quoted as saying that the purpose of the script it to help spot problems in examples and to help “extend the code coverage analysis”.
Continue Reading ·
PHP Developer - October 4th, 2006
PHPBuilder.com has another in their series of excerpts from the Sams Publishing book “PHP 5 in Practice” today - a look at paginating results on a website.
When creating browse or search functionality on a website, you many find that you end up with more data than the page can easily display at once. In these situations it makes for a better user experience to give users only a certain number of results and then present them with options to see the next and/or previous pages.
The code listing is slightly complex, but it does provide a good, clear look at how to paginate the values in an array. They also explain a bit about the two functions that make it possible - http_build_ query and array_chunk.
Continue Reading ·
PHP Developer - October 4th, 2006
As per an announcement on the main PHP site today, the French PHP Users group, AFUP, has announced the Forum 2006 happening in Paris at the end of this year.
The French AFUP association is proud to announce the fifth annual PHP meeting in Paris, on November 9th and 10th, 2006. Developers and managers will gather to meet Rasmus Lerdorf, Andrei Zmievski and other prominent community experts for two days of sessions, packed with enterprise solutions and advanced techniques (in French).
You can get complete information from the association’s website or just head over and signup today. Prices range from 100 up to 150 Euro for the two day event.
Continue Reading ·
PHP Developer - October 4th, 2006
DevShed kicks off another three-parts series today with part one of a look at working with builder objects in PHP5.
In this article, the first of a three-part series, you will be introduced to the basics of creating directors and builder objects with PHP 5. As usual, there will be copious examples to help you quickly start using the builder pattern in your own PHP projects.
Well, to put things in a simple perspective, when the builder pattern is applied, two objects are put into action to create a third one. First, these two objects create a director; as its name suggests, the director controls all aspects of the creation process and determines what pieces and modifications will be introduced into the target object. Finally, a builder is tasked with constructing the third object in question, in accordance with particular specifications. Sounds fairly simple, doesn’t it?
They start with a look at starting with the Builder pattern, building a basic XML document to provide the structure for the target object. From that information, they show how to create the object and give a simple class to help direct that object along.
Continue Reading ·