====== restart ======
{#JAPI Joomla.Framework Client JFTP::restart #}
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 =====
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:
Restart successful!
NOTE: This example is untested.