The ftp_login() function logs in to the FTP server.
If successful, the function returns TRUE. On failure, returns FALSE and a warning.
ftp_login(ftp_connection,username,password)
parameter | describe |
---|---|
ftp_connection | Required. Specifies the FTP connection to log into. |
username | Required. Specifies the username used to log in. |
password | Required. Specifies the password used to log in. |
<?php$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");ftp_login($conn,"admin","ert456");ftp_close($conn);?>