Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP ftp_pasv() Function

PHP ftp_pasv() Function


PHP FTP Reference Manual Complete PHP FTP Reference Manual


Definition and Usage

The ftp_pasv() function turns passive mode on or off.

In passive mode, the data connection is initiated by the client rather than the server. This is useful when the client is behind a firewall.

Syntax

ftp_pasv(ftp_connection,mode)

Parameters Description
ftp_connection Required. Specifies the FTP connection to use.
mode Required. Specifies the mode.
  • TRUE = Passive mode on
  • FALSE = Passive mode off
  • |

    Example


    PHP FTP Reference Manual Complete PHP FTP Reference Manual