When you think of shell scripts, layout is the least of your worries. I think most of you would not even have considered you can do much in these field, but think again! In this first part we'll talk about organizing data in tables, write text in colors, create progressbars, etc... using pear classes.
When you need data input in a web context, you send a GET/POST request to your script. On the command line, things work differently. In this blog post, we will talk obout input and output in php-cli.
Recently I presented a talk called "PHP in the Dark" about php in console scripts, daemons and concurrent processes. When preparing for the talk, I noticed I had a massive amount of information, too much for just a talk...
In my previous blog post Adding Context to your ACL I talked about adding "state" to your ACL. David Zuelke made some good comments about why this approach was not OK. I went back to the drawing board and came up with a new, cleaner answer to the problem.
Recently I reached the bounderies of what Zend_Acl could do for me. I needed extra levels of access control and ended up cluttering up my controllers. In this article, I investigate and show a clean way to add context to your acl.