Table of Contents

pwd

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

Method to retrieve the current working directory on the FTP server. This function returns a string containing the current working directory.

Syntax

string pwd ()

Examples

Example

jimport( 'joomla.connector.ftp' );

$ftp = new JFTP( array( 'type' => FTP_BINARY ) );
$ftp->connect( '127.0.0.1' );
$ftp->login( 'testuser', 'testpass' );
$ftp->chdir( 'testing' );
echo "Current Working Directory: " . $ftp->pwd();

might produce:

Result

Current Working Directory: /testing