references:joomla.framework:client:jftp-storestore
This method stores a file on the FTP server. It returns true if successful, false otherwise. Syntaxboolean store ( $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->store( 'robots.txt', 'testing/robots.txt' ) ) { echo "File stored successfully!"; } else { echo "File could not be stored!"; } might produce: Result File stored successfully!
|


