PHP Developer - December 24th, 2007
Jan Lehnardt has been working up a REST controller for a PHP application he’s been developing and has posted a minimalistic structure for one he’s worked up.
One of the projects involves very little code and I do not want to use a full fledged framework there. Another one is using Code Igniter which does not handle REST by default (as far as I can tell). So I wrote a minimal REST application controller that easy to integrate and very flexible.
His example makes a base class that is extended by each of the controllers needing REST functionality. It includes methods for dispatching, error handling, responding and passing the call to the right handler.
Continue Reading ·
PHP Developer - December 24th, 2007
On her blog Nessa has a brief look at working with permissions with PHP via three functions - chown, chgrp and chmod.
PHP uses the same command as *nix systems when dealing with changing permissions for files. These commands are particularly useful in situations where PHP runs as a different user on the system, which is common when PHP is compiled as an Apache user.
She includes a basic syntax for each of them and how one (chmod) could be used in an example of file creation.
Continue Reading ·
PHP Developer - December 24th, 2007
According to the Zend Developer Zone, the Zend Framework is going to the even more powerful in the future with the inclusion of command line functionality.
So, without further adieu, it is my pleasure to announce that Zend Framework 1.5 will include a robust, powerful, and- yes- 15-minute-demo-enabled command line interface for code generation!
They’ve set up a default structure (that’s “recommended”) but doesn’t have to be strictly adhered to. They know how most developers have structured their applications and made it accordingly. There’s three proposals in the group - the Zend_Console, Zend_Build component and the Zend_Build for Core.
Continue Reading ·