CI_FTP::mirror()

mirror($locpath, $rempath)

Parameters:
  • $locpath (string) – Local path
  • $rempath (string) – Remote path
Returns:

TRUE on success, FALSE on failure

Return type:

bool

Recursively reads a local folder and everything it contains (including sub-folders) and creates a mirror via FTP based on it. Whatever the directory structure of the original file path will be recreated on the server. You must supply a source path and a destination path:

$this->ftp->mirror('/path/to/myfolder/', '/public_html/myfolder/');
doc_CodeIgniter
2016-10-15 16:31:36
Comments
Leave a Comment

Please login to continue.