public function login($username, $password)
    {
        // @ - intentionally, because false is enough
        if (@ftp_login($this->stream, $username, $password)) {
            $this->loggedIn = true;
            return true;
        } else {
            return false;
        }
    }
public function login($username, $password)
    {
        // @ - intentionally, because false is enough
        if (@ftp_login($this->stream, $username, $password)) {
            $this->loggedIn = true;
            return true;
        } else {
            return false;
        }
    }
public function login ( $ username , $ password ) { // @ - intentionally, because false is enough if ( @ ftp_login ( $ this -> stream , $ username , $ password ) ) { $ this -> loggedIn = true ; return true ; } else { return false ; } }
Logins using username and password

@param string $username
@param string $password
@return boolean Depending on success
Logins using username and password