PHP ftp_login() Function

The ftp_login() function is used to logs in to the specified FTP connection. This function was introduced in PHP 4.

Syntax:

ParameterDescriptionIs compulsory
ftp_streamThe link identifier of the FTP connection.compulsory
usernameThe username(USER).compulsory
passwordThe password(PASS).compulsory

Return value:

This function returns TRUE on success or FALSE and a warning on failure.

Example 1

Output:


PHP ftp login() Function

Example 2

Output:


PHP ftp login() Function
Next TopicPHP FTP




Latest Courses