|
dolibarr
x.y.z
|
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. More... | |
| ftp_isdir ($connect_id, $dir) | |
| Tell if an entry is a FTP directory. More... | |
| dol_ftp_close ($connect_id) | |
| Tell if an entry is a FTP directory. More... | |
| dol_ftp_delete ($connect_id, $file, $newsection) | |
| Delete a FTP file. More... | |
| dol_ftp_get ($connect_id, $localfile, $file, $newsection) | |
| Download a FTP file. More... | |
| dol_ftp_put ($connect_id, $file, $localfile, $newsection) | |
| Upload a FTP file. More... | |
| dol_ftp_rmdir ($connect_id, $file, $newsection) | |
| Remove FTP directory. More... | |
| dol_ftp_mkdir ($connect_id, $newdir, $newsection) | |
| Remove FTP directory. More... | |
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 143 of file ftp.lib.php.
| 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 40 of file ftp.lib.php.
| 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 166 of file ftp.lib.php.
| 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 198 of file ftp.lib.php.
| 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 285 of file ftp.lib.php.
| 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 228 of file ftp.lib.php.
| dol_ftp_rmdir | ( | $connect_id, | |
| $file, | |||
| $newsection | |||
| ) |
Remove FTP directory.
| resource | $connect_id | Connection handler |
| string | $file | File |
| string | $newsection | $newsection |
Definition at line 256 of file ftp.lib.php.
| ftp_isdir | ( | $connect_id, | |
| $dir | |||
| ) |
Tell if an entry is a FTP directory.
| resource | $connect_id | Connection handler |
| string | $dir | Directory |
Definition at line 127 of file ftp.lib.php.