I'm modifying a simple php crawler script.
one of the modules it uses is a converter of relative urls into absolute urls.
For this, I need to find a way to determine the base href of a given url. Otherwise I end up with a bunch of wrongly converted links.
I need a simple function to check if an url has a base href tag, and if yes, return it.
Thanks