Building PHP 5.3.0 on Ubuntu 8.04 Server

Thursday, August 6th, 2009

When I wanted to build the latest PHP for a server I found several guides online. Sadly none of them worked right away.
So after finally getting it all to work like I wanted to, I decided to quickly write up this guide.
I start with a clean Ubuntu 8.04 install. So, first things first:

sudo apt-get update
sudo [...]

Flash Player version in AWStats – Revised

Thursday, November 20th, 2008

My first implementation of this idea may have been sufficient for general use. For inclusion in Wordpress however it was problematic at best.
Now that I have revised (and tested) it, I thought I’d share this updated Wordpress plugin.

<?php
/*
Plugin Name: Flash version Detection
Plugin URI: http://www.dirty-motherfucker.org/
Description: Detects flash version
Version: 0.1
Author: gencha
Author URI: http://www.dirty-motherfucker.org
*/

$plugin_root = get_settings(’siteurl’) . ‘/wp-content/plugins/’.dirname(plugin_basename(__FILE__));

if( [...]

Including Flash Player version in AWStats

Wednesday, November 12th, 2008

I was interested in what Flash Player version people are using when visiting my site. So i looked around the web for a solution including AWStats. At first i was out of luck until i noticed that AWStats has a discussion forum on sourceforge as well.
Someone there came up with a solution which was almost [...]