ftp_pasv()

It turns passive mode on or off

Example

<?php

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

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

ftp_pasv($conn_id, false);

ftp_close($ftpId);

?>

Share