PHP ftp_pasv() Function
Complete PHP FTP Reference
Definition and Usage
The ftp_pasv() function sets passive mode on or off.
In passive mode, data connections are initiated by the client,
not the server. This is useful if the client is behind a firewall.
Syntax
ftp_pasv(ftp_connection,mode)
|
| Parameter |
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
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");
ftp_pasv($conn,TRUE);
ftp_close($conn);
?>
|
Complete PHP FTP Reference
Use a web development platform that will help you save a lot of time and bring excitement to your daily development work.
It will also create professional best-practices around your code development and team collaboration.
Try Springloops now, the web development platform
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
|
|