Javatpoint Logo
Javatpoint Logo

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:

Parameter Description Is compulsory
ftp_stream The link identifier of the FTP connection. compulsory
username The username(USER). compulsory
password The 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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA