Archive for November 17th, 2006
PHP Developer - November 17th, 2006
The Zend Developer Zone has its next in its “Inside Look” series at the Zend Framework and its components - this look at the Zend_Cache component.
Caching isn’t one of those things that many people think of when designing their first applications. However once they launch their new AJAX enabled web2.0 application, they might start wondering what they can do to get this beast to move faster. The answer is caching.
Aaron Wormus gets started with the basics - why use caching and some of what it’s for - before getting into the actual code example. His simple example just shows how to cache a bit of information and get when it was cached. He also talks about implementing tagging for more complex caches (different pieces for different times), and the drivers that are available for the component - both frontend and backend.
Continue Reading ·
PHP Developer - November 17th, 2006
Trying to adhere to the philosophy of “release early and release often”, Felix Geisendorfer has posted a new item with the latest version of his testing application for the CakePHP framework - CakeTester.
The truth is, the poorest programmer of all is the ones that doesn’t release. Because what good am I doing to the world when tinkering for for month on things people are in bad need for today, just to make myself look like all code I ever write is perfect the first time. None at all.
He links to the download and provides some basic install/usage instructions including a code sample (and a screenshot) to get you started.
Continue Reading ·
PHP Developer - November 17th, 2006
On the ITBusinessEdge site, there’s a quick column from Lora Bentley looking at things from the other side of the Zend/Microsoft story - Microsoft’s.
She mentions the “about face” that Microsoft has seemingly made when it comes to Open Source projects, specifically the Zend deal:
As a DigitalJournal writer pointed out yesterday, the deal makes great business sense for Microsoft, given that PHP runs more than 2 million Web sites and the software company’s servers and tools business contributed one-fourth of its total revenue in the latest quarter.
You can get complete information regarding the collaboration from the Zend website.
Continue Reading ·
PHP Developer - November 17th, 2006
While testing the eZ components framework on the latest version of PHP (PHP 5.2), Derick Rethans noticed a problem - a new “Notice” message appearing related to a __get call.
The first issue is an extra notice in some cases. This all works ‘fine’ with PHP 5.1, however with PHP 5.2 the [following] notice was generated for this code.
The cause? Well, the magic function __get only returns the variables in read mode so they cannot be written to. In Derick’s situation, there was a foreach that was trying to use the values in a read/write mode. As a result, the error was tossed. He does provide a workaround, though, involving casting the information into an array.
Continue Reading ·
PHP Developer - November 17th, 2006
As this post over on APress’ Inside Open Source blog today, there’s a discussion that’s been going on over on the php-dev mailing list about namespaces in PHP6.
I find both sides of the argument quite compelling, and while FWIW I’m in favor of including them in the next release, I’m somewhat indifferent to the matter. According to one of the very latest messages in the thread, Zeev Suraski confirms they simplistic support will likely be enabled.
That’s Jason Gilmore talking there, and he goes on to reinforce something Rasmus Lerdorf has said about namespaces in the past - they’ll implement them when they find the right way (in the PHP spirit) to do it.
Continue Reading ·