Net_FTP::Net_FTP()

Net_FTP::Net_FTP() – constructor

Synopsis

require_once 'Net/FTP.php';

object Net_FTP::Net_FTP ( string $host = null , int $port = null )

Description

Create a new object for communication with FTP servers.

Parameter

  • 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.

Return value

object - the new Net_FTP object.

Note

This function can not be called statically.

Example

Using Net_FTP()

<?php

  
require_once 'Net/FTP.php';

  
$test = new Net_FTP('ftp.mydomain.com'21);

?>
predefined constants (Previous) connects to a given FTP server (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.