ftp_connect

It opens an FTP connection

Example

<?php

$fName=”test”;

$ftpId = ftp_connect(‘ftp.phpcodez.com’);

$login_result = ftp_login($ftpId, ‘anonymous’, ‘user@phpcodez.com’);

?>