PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
require_once 'Net/FTP.php';
object Net_FTP::Net_FTP ([string $host = null [, int $port = null]])
object Net_FTP::Net_FTP
Create a new object for communication with FTP servers.
string $host = null - The host to connect to ( either an IP address or a domain name).
int $port = null - The port to connect to on the server.
object - the new Net_FTP object.
This function can not be called statically.
Example 47-1. Using Net_FTP()
<?php require_once 'Net/FTP.php'; $test = new Net_FTP('ftp.mydomain.com', 21); ?>