I want to take some existing HTML files without changing them, and wrapper them using a PHP script. So far, so good -- all I need to do is include and that's good.
But when these files refer to each other, I'd really like to be able to dynamically change those links so that they point back to the PHP script using the target file as an argument.
Thus... the subject of this post!
Now I want to ensure that it is only local (relative) links that get translated in this way.
It would seem that some of the DOM functions would allow this.
Does anyone have any suggestions?
Thanks!
-- Andrew