Okay. I'm scraping some stuff in php; sometimes links are in a relative format (e.g. "/logout") rather than absolute (http://example.com/account/logout). There's a PECL extension that merges these and gives you an absolute address, but I need something a little more lightweight. i.e. just the function in php.
Any hints on resolving absolute uris from relative?
Any hints on resolving absolute uris from relative?