references:joomla.framework:client:jftp-chmodchmod
This method changes the mode for a path on the FTP server. Syntaxboolean chmod ( $path, $mode )
ExamplesExample jimport( 'joomla.connector.ftp' ); $ftp = new JFTP( array( 'type' => FTP_BINARY ) ); $ftp->connect( '127.0.0.1' ); $ftp->login( 'testuser', 'testpass' ); if ($ftp->chmod( 'john3.mp3', '777' ) ) { echo "CHMOD successful!"; } else { echo "CHMOD failed!"; } might produce: Result CHMOD successful!
|


