bad exemple, Call to a member function getSFTPLog()

Get help with using the PHP Secure Communications Library.

Moderator: Nuxius

Forum rules
The purpose of this forum is to provide support for phpseclib, a pure PHP SSH / SFTP / RSA library.

Posts by new users are held in a moderation queue and are not publicly visible until the post is approved.

bad exemple, Call to a member function getSFTPLog()

Postby puggan » Mon Jun 10, 2013 6:16 pm

I gets "Call to a member function getSFTPLog() on a non-object"

after running exemple: http://phpseclib.sourceforge.net/sftp/e ... ut,logging,

as its object is saved sftp:
$sftp = new Net_SFTP('www.domain.tld');

and the logging is done from:
echo $ssh->getSFTPLog();

that row should be
echo $sftp->getSFTPLog();
puggan
Traveler
 
Posts: 1
Joined: Mon Jun 10, 2013 6:11 pm

Re: bad exemple, Call to a member function getSFTPLog()

Postby TerraFrost » Mon Jun 10, 2013 6:42 pm

TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: bad exemple, Call to a member function getSFTPLog()

Postby tonyc » Tue Aug 13, 2013 10:32 am

Just an FYI, this error is still in the documentation - http://phpseclib.sourceforge.net/docume ... sftp_debug
tonyc
Traveler
 
Posts: 5
Joined: Tue Aug 13, 2013 10:15 am

Re: bad exemple, Call to a member function getSFTPLog()

Postby TerraFrost » Thu Aug 15, 2013 10:11 pm

That documentation is kinda deprecated. I'm not really maintaining it anymore - the main documentation can be accessed from the root of http://phpseclib.sourceforge.net/
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am


Return to phpseclib support

Who is online

Users browsing this forum: No registered users and 2 guests

cron