I'm writing a php script that takes a URL and allows the user to highlight parts of the page. When I type in a URL all of the images are broken. How can I write a script to change relative links and assets to absoulute.
Another thing this would need to cope with is with URLs such as
http://example.com/example.html because some scripts might rewrite this as
Thanks for any help