references:joomla.framework:environment:juri-setschemesetScheme
Sets the URI scheme (protocol). This function sets the URI scheme (ie. http, https, ftp, etc.). Syntaxvoid setScheme ( $scheme )
ExamplesExample $uri = new JURI( 'http://forum.joomla.org/index.php/topic,41464.msg227819.html#msg227819' ); echo "Before: " . $uri->toString(); $uri->setScheme( 'https' ); echo "After: " . $uri->toString(); might produce: Result Before: http://forum.joomla.org/index.php/topic,41464.msg227819.html#msg227819 After: https://forum.joomla.org/index.php/topic,41464.msg227819.html#msg227819 |


