PHP: check if ‘rijksregisternummer’ is valid.

I couldn’t find a decent PHP function to check the validation of the so called “rijksregisternummer” in Belgium (or “numéro de registre national” in French). I did however find a…

Read more »

Laravel Naming Conventions

Laravel supports the PHP Framework Interop Group naming conventions. You can find them on the PHP-FIG website. In short: Generally database columns are snake_case but property names are camelCase. Eloquent…

Read more »

PHP 5.4 & Drupal 6: it doesn’t work and it won’t

I upgraded my Ubuntu 10.04 to Linux Mint 14. After installing LAMP I got a Drupal WSOD on a previously well working site. As it turned out most errors came…

Read more »

Check if php5-fpm is running

When installing the combo php5-fpm together with Nginx or Apache, you might run into this error: [error] 4942#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1,…

Read more »

Which variables can you use in a Drupal-textfield with input format “php”?

This function will print a large list of all the variables that are declared in the current scope: An interesting variable is $node, but it is not always accessible.

Read more »

Move RSS-feeds out of Drupal

Our main RSS-feed at DeWereldMorgen.be is the most requested page next to our homepage. It seems logic, think of how many rss-readers hourly check the feed. And, think of how…

Read more »