CodeIgniter on the Command-Line

Credit: http://www.flickr.com/photos/ripton/So, yesterday, I spent a few hours trying to create a robust command-line interface for one of my CodeIgniter applications.  I learned a lot about PHP-CLI.  I also came to remember why it’s a bad idea to try and fit a round peg in a square hole.

The thing is, CodeIgniter is a great little web framework.  See the key word in that sentence?  Yes, you can hack some CLI functionality in, but if you want to start doing fancy stuff like adding multiple levels of interactive menus and such, then its time to rethink what you’re doing.

On the other hand, there are many reasons to create a simple CLI-interface to your web application.  The main use would be for running of maintenance tasks and automated CRON scripts.  For this kind of task, it’s very easy to create a CLI entry-point for your app.

Read more

Hello World!

horse-in-carWell, I’m back.

It’s been exactly two years, six months, 1 day, and 12 minutes since I last published a post on my website.  You could say that I took a vacation from blogging got a real job, so coming back to the activity of blogging feels like running into an old friend that I’ve hardly talked to in years.  Do you feel the tension?!  Recently, my sister asked me to dig up some old blog posts, and you know what?  Reading my old posts, I remembered just how much fun it is to write.

Read more

Better Tag Cloud