references:joomla.framework:client:jftp-createcreate
Method to create an empty file on the FTP server. Syntaxboolean create ( $path )
ExamplesExample jimport( 'joomla.connector.ftp' ); $ftp = new JFTP( array( 'type' => FTP_BINARY ) ); $ftp->connect( '127.0.0.1' ); $ftp->login( 'testuser', 'testpass' ); if ($ftp->create( 'robots.txt' ) ) { echo "Create successful!"; } else { echo "Create failed!"; } might produce: Result Create successful! |


