Mike Hughes

Just a few words…

Category: Web

Processing XSLT with PHP.

I’ve been playing around with XSLT recently, with the hope of using it to move to a more “MVC” approach to web development.
If like me, you don’t use Apache, and want a little more control over your XSLT processing, PHP has a fantastic XSLT class that can do just that!

<?php
$dom = new DomDocument();
$dom->load( ‘test.xml’ );
$xslt = new XSLTProcessor(); 
$XSL = new DOMDocument(); 
$XSL->load( ‘xslt/layout.xsl’, LIBXML_NOCDATA); 
$xslt->importStylesheet( $XSL ); 
print $xslt->transformToXML( $dom );
?> 

It’s as easy as that.
Mike Hughes.

Mike-Hughes.net

I decided to take a change in direction as far as my SEO experimentation goes.
Since making it to second result for Mike Hughes, I started looking at the first result, and I didn’t really find much of a reason for why it was first, other than the almost exact keyword match in the domain name.
So [...]

Lighttpd/PHP/MySQL for Low RAM applications

The point of this article is to demonstrate how to install and optimise Lighttpd, PHP5 and MySQL under Debian (My system runs ‘Etch’).
If you feel I’ve missed anything in this article, or have made an error, get in touch.
Ok, so let’s grab lighttpd, php and MySQL
apt-get install lighttpd php5-cgi php5-cli php5-mysql mysql-server
You may want to [...]

New VPS Hosting: BitFolk.com

After losing my co-located hardware, I was forced onto shared hosting. I’ve put up with this for approximately one year now, however, just recently the restrictions of this have really been getting to me. Now I don’t need a dedicated server, so the next option is a VPS (Virtual Private Server).
A Company called BitFolk came [...]