Connect FTP Sever Using PHP

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”);

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.