downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ftp_get> <ftp_fput
Last updated: Fri, 13 Nov 2009

view this page in

ftp_get_option

(PHP 4 >= 4.2.0, PHP 5)

ftp_get_optionカレント FTP ストリームでの種々の実行時動作を取得する

説明

mixed ftp_get_option ( resource $ftp_stream , int $option )

この関数は、指定した FTP 接続について option の値を返します。

パラメータ

ftp_stream

FTP 接続のリンク ID

option

現在、以下のオプションがサポートされています:

サポートされる実行時 FTP オプション
FTP_TIMEOUT_SEC ネットワーク関連処理で使用されるカレントのタイムアウトを返します。
FTP_AUTOSEEK オプションが設定されている場合に TRUE を、それ以外の場合に FALSE を返します。

返り値

成功した場合はその値を、指定した option がサポートされていない場合は FALSE を返します。後者の場合は、 同時に警告メッセージも発生します。

例1 ftp_get_option() の例

<?php
// 指定した FTP ストリームのタイムアウトを取得する
$timeout ftp_get_option($conn_idFTP_TIMEOUT_SEC);
?>

参考

  • ftp_set_option() - さまざまな FTP 実行時オプションを設定する



add a note add a note User Contributed Notes
ftp_get_option
There are no user contributed notes for this page.

ftp_get> <ftp_fput
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites