ftp_pasv
ftp_pasv
(PHP 4, PHP 5, PHP 7)
ftp_pasv — Turns passive mode on or off
Description
bool ftp_pasv ( resource $ftp_stream , bool $pasv )
ftp_pasv() turns on or off passive mode. In passive mode, data connections are initiated by the client, rather than by the server. It may be needed if the client is behind firewall.
Please note that ftp_pasv() can only be called after a successful login or otherwise it will fail.