Passive Property
Controls whether to direct the server into passive mode. Recommended if behind a firewall.
Object Oriented Interface
public function getPassive(); public function setPassive($value);
Procedural Interface
ipworks_ftp_get($res, 24 ); ipworks_ftp_set($res, 24, $value );
Default Value
true
Remarks
This property controls whether to direct the server into passive mode. Many firewalls will not allow the FTP server to open a connection from outside to the higher ports where the FTP client class expects them. If Passive is set to TRUE, the class will use the PASV instead of the PORT command and will thus direct the server into passive mode: connections are initiated only by the client.
Data Type
Boolean