references:joomla.framework:client:jftp-mkdirmkdir
This method creates a folder on the FTP server. If the operation is successful, it returns true. Otherwise, it returns false. Syntaxboolean mkdir ( $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->mkdir( 'testing' ) ) { echo "Directory successfully created!"; } else { echo "Could not create directory!"; } might produce: Result Directory successfully created! |


