Support Joomla!

references:joomla.framework:client:jftp-chdir

Table of Contents

chdir

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

This is a method to change the current working directory on the FTP server.

Syntax

boolean chdir ( $path )

$path string is a string containing the path to change to on the server.

Examples

Example

jimport( 'joomla.connector.ftp' );

$ftp = new JFTP( array( 'type' => FTP_BINARY ) );
$ftp->connect( '127.0.0.1' );
$ftp->login( 'testuser', 'testpass' );

if ($ftp->chdir( 'test' ) ) {
    echo "Directory change successful!";
} else {
    echo "Directory change failed!";
}

might produce:

Result

Directory change successful!
 
references/joomla.framework/client/jftp-chdir.txt (440 views) · Last modified: 2007/08/15 15:13