PHP Manual
Prev |  | Next

# ftp_pasv

(3.0.13 - 3.0.18 only, PHP 4 >= 4.0.0)

ftp_pasv -- Turns passive mode on or off.

## Description

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

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.

Returns `TRUE` on success, `FALSE` on error.

Prev | Home | Next
ftp_systype | Up | ftp_get