Support Joomla!

references:joomla.framework:client:jftp-mkdir

Table of Contents

mkdir

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Client Class JFTP Method mkdir Reference mkdir() Never Work in Progress

This method creates a folder on the FTP server. If the operation is successful, it returns true. Otherwise, it returns false.

Syntax

boolean mkdir ( $path )

$path string is a string containing the path of the folder to create.

Examples

Example

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!
 
references/joomla.framework/client/jftp-mkdir.txt (470 views) · Last modified: 2007/08/15 15:13