FTP Library - RoverWire/codeigniter-utilities GitHub Wiki

Official Codeginiter documentation ftp library reference

Change file mod

Trigger: ciftpchmod

Results: $this->ftp->chmod($file, 0775);

Connection close

Triger: ciftpclose

Results: $this->ftp->close();

Connect

Creates a base array configuration and ftp connect function.

Trigger: ciftpcon

Results:

$config['hostname'] = '';
$config['username'] = '';
$config['password'] = '';
$config['port']     = 21;
$config['passive']  = FALSE;
$config['debug']    = TRUE;

$this->ftp->connect($config);

Change directory

Triger: ciftpcd

Results: $this->ftp->changedir($path);

Delete directory

Trigger: ciftpdeldir

Results: $this->ftp->delete_dir($path);

Delete file

Trigger: ciftpdelfile

Results: $this->ftp->delete_file($file);

Download

Trigger: ciftpdown

Results: $this->ftp->download($remote, $local, 'auto');

List files

Trigger: ciftpls

Results: $files = $this->ftp->list_files($path);

Mirror

Trigger: ciftpmir

Results: $this->ftp->mirror($local, 0775);

Make directory

Trigger: ciftpmkdir

Results: $this->ftp->mkdir($local, 0775);

Move file

Trigger: ciftpmv

Results: $this->ftp->move($from, $to);

Rename

Trigger: ciftprn

Results: $this->ftp->rename($from, $to);

Upload

Trigger: ciftpup

Results: $this->ftp->upload($local, $remote, 'auto', 0775);

⚠️ **GitHub.com Fallback** ⚠️