Weblog Archives

You are currently browsing the archives for the PHP tag.

PHP Interactive Interpreter

The PHP interpreter supports running it in interactive mode by using the –interactive (short equivalent: -a) command-line switch. Running an interactive PHP shell can be useful when you need to quickly try code snippets. But, for this mode to be fully functional, PHP has to be compiled with readline support. Unfortunately, on CentOS PHP has [...]

Issues with the feeds are now resolved

This is just a quick notice that during the last five days there was a problem with the website feeds. The web server returned a 500 Internal Server Error to almost all requests for /feed/ URLs. Also, there was a big increase of the server’s CPU load behind the scenes, which was caused by php-cgi [...]

Drupal Tip: List a node’s taxonomy terms inside a Block

It’s been several months since the last time I had done any coding on Drupal. Although many people might find it trivial, here is a PHP snippet to enter in a custom block, so that the taxonomy terms of the currently displayed node are printed as an unordered list inside that block. Also, each list [...]