Blog: September 2010

Anti-virus for Drupal sites

Anti-virus is a subject that's drummed into us continually, bombarded as we are by a constant barrage of infected emails, exploits, attacks on web-servers.

Your server may well be firewalled, patched, protected by strong passwords and all the rest, but many Drupal sites have an attack-vector left wide open: file uploads.

I could use a REST from ModRewrite

I won't enthuse about the virtues of web-services and especially REST - many people have written great articles and presentations before me :-)

One problem irked me: delivering different content on the same URL using a framework.

I'm building a system which stores data about a company.
You visit company/20 and you get a page with data about company 20.
You POST to company/20 and the system saves the new data.

This can make your controller a little fugly:

<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
  $this->_saveCompany();
}
else {
  $this->_viewCompany();
}

Drupal and Varnish - a quick intro

Varnish is a HTTP accelerator (or reverse proxy) capable of serving 100,000 requests a second. Somewhat faster than Drupal, even with page-caching on!

How does it work?

Diagram of the varnish process, explained in more detail in the list below.

Panels magic

I love unexpected discoveries.

Drupal's Panels module seems to find its way into most of my site builds, along with custom layouts, panel-panes and all sorts of goodness.

I used to declare custom panel layouts this way:

Drupal and the spirit of openness

So what does it take to get accepted around here?
I've started this post to kick off a discussion about the Drupal database abstraction layer, and how to encourage support for other databases.

Subscribe to Blog: September 2010