Support Joomla!

references:joomla.framework:environment:juri-setpassword

Table of Contents

setPassword

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Environment Class JURI Method setPassword Reference setPassword() Never Work in Progress

Sets the URI password.

Syntax

void setPassword ( $pass )

$pass string is a string containing the new URI password.

Examples

Example

$uri = new JURI( 'http://www.joomla.org?action=help#create' );
echo "Before: " . $uri->toString();
$uri->setUsername( 'user' );
$uri->setPassword( 'secret' );
echo "After: " . $uri->toString();

might produce:

Result

Before: http://www.joomla.org?action=help#create
After: http://user:secret@www.joomla.org?action=help#create
 
references/joomla.framework/environment/juri-setpassword.txt (573 views) · Last modified: 2007/08/15 14:51