Connect FTP Sever Using PHP
Using PHP,We can Connect , Upload /Download to/from a FTP server.
In order to use FTP functions with your PHP configuration,
you should add the –enable-ftp option.
ftp_connect:
—————–
It Opens up an FTP Connection with Server.
Syntax:
resource ftp_connect ( string host , int port , int timeout);
Example:
$conn=ftp_connect(”ftp.domain.com”);
( default FTP port is 21, If no specification of port)
ftp_login:
————-
bool ftp_login ( resource ftp_stream, string username, string password)
example:
———–
ftp_login ( $conn, “user”,”password”);
