November 30th, 2007

New Hat

The Power....

Just seen this on a mailing list:

To .htaccess, add:
addtype x-httpd-php .css
To your css files, add:
<? header('Content-Type: text/css');?> (corrected: thanks, drplokta)
There's one "feature" to look out for - these CSS files aren't cached, but generated each time they're served. You can either take advantage of this, or Do Stuff in httpd.conf to fix it....

Now, where's a nail I can test my nice new hammer on?