PHP

Entertaining Youtube Videos by Appcelerator from ZendCon 08

Yes, I read the Zend Newsletter because usually I find something new in it. This issue was no disappointment as they featured some videos put together by Appcelerator, a sponsor at ZendCon 08. They interviewed attendees in a series of 4 topics: Developers LOVE PHP, PHP Developer Gripes, Developers HATE PHP, and The Best PHP Applications.

PHP APC Performance Tests with Apache ab

Today I ran some quick tests with PHP APC using Apache's ab benchmarking tool. The goal was to see how much of a performance gain I could see between PHP APC disabled, then enabled.

Which PHP op-code caches / Accelerators do you prefer?

XCache
0% (0 votes)
eAccelerator
0% (0 votes)
PHP APC
100% (1 vote)
Other
0% (0 votes)
Total votes: 1

How to: Namespace in PHP

Namespacing has been long awaited to enhance PHP OO development, and it looks like it's finally here. At first, I thought it was going to become available in PHP6, but it has been ported to PHP 5.3.

What is a Namespace?

Namespacing provides you the freedom to name your classes what you want without worrying about any other classes, native to PHP or otherwise, interfering with your names.

PHP foreach value by reference

PHP5 added a very subtle yet very handy feature in the foreach Control Structure. It is the ability to access the value in the iteration as a reference to the original array.

The best way to demonstrate this is to establish an objective.

Objective: Write a function to capitalize all elements of an array.

JQuery Sortables with PHP and MySQL

This article will show you how to order a server-side list of fruit from a database using drag and drop behavior and then save them back to the database in order.

I recently worked on a project which required an unordered list to be re-ordered and then saved. I wasn't about to make users enter numbers next to each item so I looked toward JQuery's UI library.

Objective: We will display a list of fruit. The user can then drag the fruit and click a button to save the new order in the database.