Re: [PHP] Remove domain: What do think of this approach?

2007-05-16 Thread Micky Hulse
Robin Vickery wrote: use parse_url() http://www.php.net/parse_url then append the 'path' part to document root ? OMG, that looks like it will do the trick! Jeez, how did I miss that. I feel like a dufus. Are list members allowed at least one "RTFM" question per month? :D Thanks Robin! I appr

Re: [PHP] Remove domain: What do think of this approach?

2007-05-16 Thread Robin Vickery
On 16/05/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Hi folks, I hope everyone is having a good week. :) Let me cut to the chase... Basically, I need to get this: http://www.site.com/folder/foo To work like this: $_SERVER['DOCUMENT_ROOT'].'folder/foo/file.ext'; For use with getimagesize() and

Re: [PHP] Remove domain: What do think of this approach?

2007-05-16 Thread Micky Hulse
Micky Hulse wrote: /* ** Output: ** /web1/httpd/htdocs/blogs/images/uploads */ Ooops, typed that wrong, example output should be: /web1/httpd/htdocs/folder/foo -- Wishlists: Switch: BCC?: My: