Script to update PhpBB 3.0.x to 3.1.x

Recently I had to upgrade a dozen PhpBB boards to the latest version. Previously I would do this by hand, which would take days. This time though, while reading through the update notes, I noticed that it is possible to update the database through the console (I assume this was only introduced in 3.1). That was the necessary prerequisity to be able to automate everything. I ended up with the following script:

```bash #!/usr/bin/env bash echo “Upgrading PhpBB instal in ‘$1’ to 3.1 with files from ‘$2’…”

Read more →

Learning Access Control Lists

I am just studying ACLs in CakePHP. This is one of the most brilliantly written pieces of documentation I’ve read in my web dev career. And I don’t mean it ironically. Whoever written this - thanks man!

Read more →

Unit testing/Test driven development

…really enjoying it. I have been doing unit testing sparingly for a long time, but just now I am really starting to take it serious. Every new functionality I add to a project/application I am working on I seal with sufficient unit tests. Also it’s much faster to develop and test business logic using tests than testing it trough GUI. I’ve been missing a lot!

Read more →

CakePHP and WebBaker

Recently I started using this wonderful PHP framework called CakePHP. It really moves the whole web development process to another level. It has got the MVC pattern, great community, good documentation, lots of people writing about it and there is the WebBaker. WebBaker is a PHP script that let’s you easily create all the files you need for your MVC pattern (model, controller, views). This saves you a lot of precious minutes.

Read more →