Jack Kray

  • 0

How to create PHP FTP nested directories


[email protected]_chdir($ftpcon, $part)){
      ftp_mkdir($ftpcon, $part);
      ftp_chdir($ftpcon, $part);
      //ftp_chmod($ftpcon, 0777, $part);
      }
   }
}

// usage
$path_of_storage = '/var/www/uploads';
$newftpdir = '2013/06/11/username';

$conn_id = ftp_connect($ftpserver);
ftp_login($conn_id, $login, $pass);
ftp_mksubdirs($conn_id,$path_of_storage,$newftpdir);
ftp_close($conn_id);

?>

 

How to create PHP FTP nested directories, How to create PHP nested directories,  How Do I Create a Sub-Folder via PHP?,  PHP create nested directories, how to create PHP FTP recursive directories

loading...

Related posts

Related posts