Static method which returns a reference to the global JURI object, only creating it if it doesn't already exist. The object returned will be of type JURI. The global URI object represents the URI that caused the current page to be rendered.
object JURI getURI()
In this example, the global URI object is output as a string.
$u =& JFactory::getURI(); echo 'URI is ' . $u->toString() . "\n";