I've been searching the docs (and this board) for a way to get the value of a base URL, like,
i have an URL like this: http://www.somewhere.com/somesite
i was wondering if there is a PHP function that can take that string and get the http://www.somewhere.com ?
if there isn't a function already made, i'll just use regexps on it. but, i would think there is a function for this.. i'm not sure what it is though, even after checking the docs. thanks for any pointers