ftp_set_option()

It sets miscellaneous runtime FTP options

Example

<?php

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

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

ftp_set_option($ftpId, FTP_TIMEOUT_SEC, 10);

ftp_quit($ftpId);

?>