PHP Manual
Prev |  | Next

# ftp_pasv

ftp_pasv -- Turns passive mode on or off.

## Description

`int ftp_pasv`(int ftp_stream, int pasv);

Returns true on success, false on error.

ftp_pasv() turns on passive mode if the `pasv` parameter is true (it turns off passive mode if `pasv` is false.) In passive mode, data connections are initiated by the client, rather than by the server.

Prev | Home | Next
ftp_systype | Up | ftp_get