Archive for November 13th, 2006
PHP Developer - November 13th, 2006
In a new post over on his blog today, Davey Shafik has announced the winners of the Zend PHP 5 Certification Study Guide competition he and php|architect were sponsoring.
To enter the contest, one only needed to come up with a proposal for the Zend Framework and submit it to the site as well. The top three ended up being:
Prizes for the competition ranged from a copy of Zend Studio and a PHP 5 Certification Voucher out to a year’s subscription to php|architect magazine.
Continue Reading ·
Dev Shed - November 13th, 2006
Do you want to know how to build an error logging system using the chain of responsibility schema with PHP If your answer is a loud yes then in this group of articles you ll find what you ve been looking for Welcome to the concluding part of the series Understanding the chain of responsibility between PHP objects. This set of three tutorials shows you how to define a specific chain of responsibility that involves several PHP objects and applies this concept to creating an expandable error logging mechanism….
Rackspace-Managed Servers, Fanatical Support Full-Scale Microsoft & Linux Solutions & 0% Network Downtime! Click here now!
Continue Reading ·
PHP Developer - November 13th, 2006
On his blog today, David Coallier has an announcement about the PEAR package he’s been working on that’s finally come into it’s own - the Text_CAPTCHA_Numeral.
Hello all, so for the previous weeks I have put the simple pear package Text_CAPTCHA_Numeral through the rough pear proposal process and voting. Now it has been proposed, and accepted, you can see it working at this address (In it’s natural form).
David also points out the live source of the demo, giving developers a great place to start with this package. There’s even two FAQ questions to help get simple topics out of the way (spammers and storing the answer).
Continue Reading ·
PHP Developer - November 13th, 2006
Finishing off their look at the “chain of responsibility”, DevShed has posted part three of the series - expanding on the code that they produced in the past, they add more functionality to their error logger.
Now, paying attention to the topics that will be covered in this tutorial, what you’ll learn here will consist essentially of applying the chain of responsibility schema to expand the capacity of the error logging system that was developed previously.
They take a look back at what they produced in the previous tutorial (the simple error logger) and show how to expand on it by adding functionality to log errors to a file. The finish it off by showing how to implement it all in a simple script.
Continue Reading ·
PHP Developer - November 13th, 2006
So, you’ve just upgraded to PHP 5.2 and all is going well until you come across a page in your application that gives the message “Nesting level too deep - recursive dependency?”. With such a vague error message, you might have trouble locating the source of the problem. Thankfully, someone’s already been there and figured out the issue - Richard Lord.
I installed PHP 5.2 on one of my testing servers today and a couple of bits of code that previously worked fine in version 5.1.6 threw fatal errors in the new version. The error message was “Nesting level too deep - recursive dependency?” and it took a little time to track down the root of the problem. Here’s what I’d done wrong.
Basically, his problem was using the “non-strict” evaluation for checking if two objects were equal to each other (== instead of ===). This compares everything about them, down to the properties - even if they’re references to other properties inside of the same class (which is where the problem lies).
So, the fix is simple - === instead of == when comparing those objects. You’ll be happier for the change.
Continue Reading ·