Support Joomla!

references:joomla.framework:client:jftp-login

Table of Contents

login

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Client Class JFTP Method login Reference login() Never Work in Progress

This method logs in to a server once connected.

Syntax

boolean login ( $user, $pass )

$user string is a string containing the username to use to login to the server.
$pass string is a string containing the password to use to login to the server.

Examples

Example

jimport( 'joomla.connector.ftp' );

$ftp = new JFTP( array( 'type' => FTP_BINARY ) );
$ftp->connect( 'ftp.domain.com' );
if ($ftp->login( 'user', 'password' ) ) {
    echo "Login successful!";
} else {
    echo "Login failed!";
}

might produce:

Result

Login successful!
 
references/joomla.framework/client/jftp-login.txt (525 views) · Last modified: 2007/08/15 15:13