I want to mess with my brother for April Fools. To do so, I need a few things and would like to ask for your help:

1) A site or server-side script that will translate a normal site into a JeffK-like site. Eg, "like" into "liek", "the" to "teh". If it's a site, I have to be able to pass it the URL of the original site in the GET request. For example, getting http://sometranslator.com/www.realsite.com will return the translated version of www.realsite.com. If it's a server-side script, it needs to be able to run on PHP/Linux and meet the above critiria. I would really, really prefer to use somebody else's site because my webserver is having occasional hardware-related crashes.

The problem is, I don't know what 'filename' will be ahead of time. I'm guessing that I'll need to use mod_rewrite in some fashion, but I just don't know how - this is literally the first time I've done anything other than helloworld type stuff in Apache/PHP.

Be sure to post the sources and instructions on how to use them when you're done.

I got images working, and stylesheets + javascript mostly working.

Here's how to do it:

First, set up the host file on the target. For my brother, it was C:\WINNT\system32\drivers\etc\hosts. For *nix, it will be just /etc/hosts. Any websites you want to 1337-ify should be pointed to your server.

Second, you need Apache installed with PHP on another computer (it must be another computer). Make sure it's a fast computer - a page that loads about instantly unprocessed takes 3-4 seconds when run through my Athlon 3400+. This is the computer to point the websites to.

This is the contents of the .htaccess file. Put it in the apache server root. It will send all requests except /favicon.ico (don't ask, long story) and /make-31337.php (our script) to the translation script.

### Algorithm: First split the data on every "<" symbol. This results in a
### string composed of the contents of an HTML tag, a ">" symbol, then text.
### Iterate over each of these "TAG>TEXT" strings, splitting on the ">" so
### "TAG" and "TEXT" are now isolated. Print out the "TAG", then goto work on
### the "TEXT" portion: