Tried URI::uri_string() but can\'t get it to work with the base_url.
URL: http://localhost/dropbox/derrek/shopredux/ahahaha/hihihi Returns: dr
http://localhost/dropbox/derrek/shopredux/ahahaha/hihihi
dr
If url helper is loaded, use
url
current_url();
will be better