references:joomla.framework:client:jftp-chdirchdir
This is a method to change the current working directory on the FTP server. Syntaxboolean chdir ( $path )
ExamplesExample 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! |


