<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ftp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.ftp-get-option.php',
    1 => 'ftp_get_option',
    2 => 'カレントの FTP 接続での種々の実行時動作を取得する',
  ),
  'up' => 
  array (
    0 => 'ref.ftp.php',
    1 => 'FTP 関数',
  ),
  'prev' => 
  array (
    0 => 'function.ftp-get.php',
    1 => 'ftp_get',
  ),
  'next' => 
  array (
    0 => 'function.ftp-login.php',
    1 => 'ftp_login',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/ftp/functions/ftp-get-option.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ftp-get-option" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ftp_get_option</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ftp_get_option</span> &mdash; <span class="dc-title">カレントの FTP 接続での種々の実行時動作を取得する</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.ftp-get-option-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ftp_get_option</strong></span>(<span class="methodparam"><span class="type"><a href="class.ftp-connection.php" class="type FTP\Connection">FTP\Connection</a></span> <code class="parameter">$ftp</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$option</code></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></span></div>

  <p class="para rdfs-comment">
   この関数は、指定した FTP 接続について
   <code class="parameter">option</code> の値を返します。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.ftp-get-option-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">ftp</code></dt>
     <dd>
      <p class="para"><span class="classname"><a href="class.ftp-connection.php" class="classname">FTP\Connection</a></span> クラスのインスタンス</p>
     </dd>
    
    
     <dt><code class="parameter">option</code></dt>
     <dd>
      <p class="para">
       現在、以下のオプションがサポートされています:
       <table class="doctable table">
        <caption><strong>サポートされる実行時 FTP オプション</strong></caption>
        
         <tbody class="tbody">
          <tr>
           <td><strong><code><a href="ftp.constants.php#constant.ftp-timeout-sec">FTP_TIMEOUT_SEC</a></code></strong></td>
           <td>
            ネットワーク関連処理で使用されるカレントのタイムアウトを返します。
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="ftp.constants.php#constant.ftp-autoseek">FTP_AUTOSEEK</a></code></strong></td>
           <td>
            オプションが設定されている場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、それ以外の場合に
            <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
           </td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.ftp-get-option-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合はその値を、指定した <code class="parameter">option</code>
   がサポートされていない場合は <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。後者の場合は、
   同時に警告メッセージも発生します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.ftp-get-option-changelog">
  <h3 class="title">変更履歴</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>バージョン</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.1.0</td>
 <td>
  引数 <code class="parameter">ftp</code> は、<span class="classname"><a href="class.ftp-connection.php" class="classname">FTP\Connection</a></span>
  のインスタンスを期待するようになりました。
  これより前のバージョンでは、<span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> を期待していました。
 </td>
</tr>

    </tbody>
   
  </table>

 </div>

 
 <div class="refsect1 examples" id="refsect1-function.ftp-get-option-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>例1 <span class="function"><strong>ftp_get_option()</strong></span> の例</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// 指定した FTP ストリームのタイムアウトを取得する<br /></span><span style="color: #0000BB">$timeout </span><span style="color: #007700">= </span><span style="color: #0000BB">ftp_get_option</span><span style="color: #007700">(</span><span style="color: #0000BB">$ftp</span><span style="color: #007700">, </span><span style="color: #0000BB">FTP_TIMEOUT_SEC</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.ftp-get-option-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ftp-set-option.php" class="function" rel="rdfs-seeAlso">ftp_set_option()</a> - さまざまな FTP 実行時オプションを設定する</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>