Hi from Greece.
I need to make a script to change relative urls to absolute, included photos. For example lets say we have the following 4 items in our html file:
<a href="page2.htm">go to page 2</a>
<a href="subfo/page3.htm">go to page 3</a>
<a href="../page2.htm">go back to page 2</a>
<img src="images/logo1.gif">
Any ideas how they could converted to something like
<a href="http://www.mydomain.gr/page2.htm">go to page 2</a>
or even better to
<a href="http://www.mydomain.gr/scripts.php?lurl=page2.htm">go to page 2</a>
Any ideas? I don't care if it's a one time run script (to create or just print a new html file) or running script (even it takes to much cpu)
Thanks in Advance