dolibarr 20.0.0
|
Set of functions used for FTP. More...
Go to the source code of this file.
Functions | |
dol_ftp_connect ($ftp_server, $ftp_port, $ftp_user, $ftp_password, $section, $ftp_passive=0) | |
Connect to FTP server. | |
ftp_isdir ($connect_id, $dir) | |
Tell if an entry is a FTP directory. | |
dol_ftp_close ($connect_id) | |
Tell if an entry is a FTP directory. | |
dol_ftp_delete ($connect_id, $file, $newsection) | |
Delete a FTP file. | |
dol_ftp_get ($connect_id, $localfile, $file, $newsection) | |
Download a FTP file. | |
dol_ftp_put ($connect_id, $file, $localfile, $newsection) | |
Upload a FTP file. | |
dol_ftp_rmdir ($connect_id, $file, $newsection) | |
Remove FTP directory. | |
dol_ftp_mkdir ($connect_id, $newdir, $newsection) | |
Remove FTP directory. | |
Set of functions used for FTP.
Definition in file ftp.lib.php.
dol_ftp_close | ( | $connect_id | ) |
Tell if an entry is a FTP directory.
resource | $connect_id | Connection handler |
Definition at line 144 of file ftp.lib.php.
References getDolGlobalString().
dol_ftp_connect | ( | $ftp_server, | |
$ftp_port, | |||
$ftp_user, | |||
$ftp_password, | |||
$section, | |||
$ftp_passive = 0 ) |
Connect to FTP server.
string | $ftp_server | Server name |
string | $ftp_port | Server port |
string | $ftp_user | FTP user |
string | $ftp_password | FTP password |
string | $section | Directory |
integer | $ftp_passive | Use a passive mode |
Definition at line 39 of file ftp.lib.php.
References dol_syslog(), and getDolGlobalString().
dol_ftp_delete | ( | $connect_id, | |
$file, | |||
$newsection ) |
Delete a FTP file.
resource | $connect_id | Connection handler |
string | $file | File |
string | $newsection | $newsection |
Definition at line 165 of file ftp.lib.php.
References dol_syslog(), and getDolGlobalString().
dol_ftp_get | ( | $connect_id, | |
$localfile, | |||
$file, | |||
$newsection ) |
Download a FTP file.
resource | $connect_id | Connection handler |
string | $localfile | The local file path |
string | $file | The remote file path |
string | $newsection | $newsection |
Definition at line 196 of file ftp.lib.php.
References getDolGlobalString().
dol_ftp_mkdir | ( | $connect_id, | |
$newdir, | |||
$newsection ) |
Remove FTP directory.
resource | $connect_id | Connection handler |
string | $newdir | Dir create |
string | $newsection | $newsection |
Definition at line 282 of file ftp.lib.php.
References getDolGlobalString().
dol_ftp_put | ( | $connect_id, | |
$file, | |||
$localfile, | |||
$newsection ) |
Upload a FTP file.
resource | $connect_id | Connection handler |
string | $file | File name |
string | $localfile | The path to the local file |
string | $newsection | $newsection |
Definition at line 225 of file ftp.lib.php.
References getDolGlobalString().
dol_ftp_rmdir | ( | $connect_id, | |
$file, | |||
$newsection ) |
Remove FTP directory.
resource | $connect_id | Connection handler |
string | $file | File |
string | $newsection | $newsection |
Definition at line 253 of file ftp.lib.php.
References getDolGlobalString().
ftp_isdir | ( | $connect_id, | |
$dir ) |
Tell if an entry is a FTP directory.
resource | $connect_id | Connection handler |
string | $dir | Directory |
Definition at line 128 of file ftp.lib.php.