Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP ftp_login() Function

PHP ftp_login() Function


PHP FTP Reference Manual Complete PHP FTP Reference Manual


Definition and Usage

The ftp_login() function logs in to an FTP server.

Returns TRUE on success, or FALSE with a warning on failure.

Syntax

ftp_login(ftp_connection,username,password)

Parameters Description
ftp_connection Required. Specifies the FTP connection to log in to.
username Required. Specifies the username used to log in.
password Required. Specifies the password used to log in.

Example


PHP FTP Reference Manual Complete PHP FTP Reference Manual