ftp_login() function in PHP

The ftp_login() function allows you to log in to the FTP connection.

Syntax

ftp_login(con,user_name,password);

Parameters

  • con − The FTP connection

  • user_name − The user name to log in

  • password − The password to login

Return

The ftp_login() function returns TRUE on success or FALSE and warning on failure.

Example

The following is an example −

Updated on: 2019-07-30T22:30:24+05:30

165 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements