references:joomla.framework:client:jftp-getget
This method gets a file from the FTP server and saves it to a local file. Syntaxboolean get ( $local, $remote )
ExamplesExample jimport( 'joomla.connector.ftp' ); $ftp = new JFTP( array( 'type' => FTP_BINARY ) ); $ftp->connect( '127.0.0.1' ); $ftp->login( 'testuser', 'testpass' ); if ($ftp->get( JPATH_ROOT . '/john3.mp3', 'john3.mp3' ) ) { echo "Get successful!"; } else { echo "Get failed!"; } might produce: Result Get successful! |


