Net_FTP::Net_FTP()

Net_FTP::Net_FTP() – コンストラクタ

Synopsis

require_once 'Net/FTP.php';

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

Description

FTP サーバと通信するための新規オブジェクトを生成します。

Parameter

  • string $host = null - 接続先ホスト(IP アドレスあるいはドメイン名のいずれか)。

  • int $port = null - サーバへの接続のためのポート番号。

Return value

object - 新規 Net_FTP オブジェクト

Note

This function can not be called statically.

Example

Net_FTP() の使用法

<?php

  
require_once 'Net/FTP.php';

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

?>