WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

PHP ftp_login() function


Definition and usage

ftp_login () function logs in to the FTP server.

If successful, the function returns TRUE. If it fails, FALSE and a warning are returned.

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 to use for login.
password Required. Specifies the password used for login.


Example

<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");
ftp_close($conn);
?>