Manuel Pear

Net_FTP::Net_FTP()

Net_FTP::Net_FTP() -- constructor

Synopsis

  1. <?php
  2. require_once 'Net/FTP.php
  3. ?> 

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

Description

Create a new object for communication with FTP servers.

Paramètres

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

Valeur retournée

object - the new Net_FTP object.

Note

Cette fonction ne peut pas être appelée de façon statique.

Exemple

Exemple 54-1. Using Net_FTP()

  1. <?php
  2.  
  3. require_once 'Net/FTP.php';  
  4.  
  5. $test = new Net_FTP('ftp.mydomain.com', 21);  
  6.  
  7.  
  8. ?> 

Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique