Table of Contents

restart

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

This method restarts data transfer at the specified byte. This method returns true if successful, false otherwise.

Syntax

boolean restart ( $point )

$point integer is an integer containing the byte at which to restart the transfer.

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->restart( 19753 ) ) {
    echo "Restart successful!";
} else {
    echo "Restart failed!";
}

might produce:

Result

Restart successful!

NOTE: This example is untested.