Simple URL parser written in PHP to handle relative and absolute paths.