PHP ftp_login() Function

PHP FTP Reference : Connect, login, and close an FTP connection

Definition and Usage

The ftp_login() function logs in to the specified FTP connection.

Syntax

ftp_login(ftp_conn, username, password);

Parameter Values

Parameter Description
ftp_conn Required. Specifies the FTP connection to use
username Required. Specifies the username to login with
password Required. Specifies the password to login with

Technical Details

Return Value: TRUE on success, FALSE and a warning on failure
PHP Version: 4+

❮ PHP FTP Reference