object Net_FTP::Net_FTP (
string $host = null
,
int $port = null
)
FTP サーバと通信するための新規オブジェクトを生成します。
string $host = null
-
接続先ホスト(IP アドレスあるいはドメイン名のいずれか)。
int $port = null
-
サーバへの接続のためのポート番号。
object
- 新規 Net_FTP オブジェクト
This function can not be called statically.
Net_FTP() の使用法
<?php
require_once 'Net/FTP.php';
$test = new Net_FTP('ftp.mydomain.com', 21);
?>