| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Client |
JFTP |
restart |
restart() |
Never | Work in Progress |
This method restarts data transfer at the specified byte. This method returns true if successful, false otherwise.
boolean restart ( $point )
| $point | integer | is an integer containing the byte at which to restart the transfer. |
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.