Well you need to write a script that looks for the img tag, then replace the src value with the absoulte location. now there is a easy way to do it, now it is very messy, but it is a lot easyer, you need to set a link that sets the base to the dir that your page is in. dont really remember the details, but look on php.net they should have the details.