<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.geoip.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.geoip-setup-custom-directory.php',
    1 => 'geoip_setup_custom_directory',
    2 => 'GeoIP データベースのカスタムディレクトリを設定する',
  ),
  'up' => 
  array (
    0 => 'ref.geoip.php',
    1 => 'GeoIP 関数',
  ),
  'prev' => 
  array (
    0 => 'function.geoip-region-name-by-code.php',
    1 => 'geoip_region_name_by_code',
  ),
  'next' => 
  array (
    0 => 'function.geoip-time-zone-by-country-and-region.php',
    1 => 'geoip_time_zone_by_country_and_region',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/geoip/functions/geoip-setup-custom-directory.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.geoip-setup-custom-directory" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">geoip_setup_custom_directory</h1>
  <p class="verinfo">(PECL geoip &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">geoip_setup_custom_directory</span> &mdash; <span class="dc-title">GeoIP データベースのカスタムディレクトリを設定する</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.geoip-setup-custom-directory-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>geoip_setup_custom_directory</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$path</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>


  <p class="simpara">
   <span class="function"><strong>geoip_setup_custom_directory()</strong></span> 関数は、
   GeoIPデータベースのデフォルトディレクトリを変更します。
   これは <a href="geoip.configuration.php#ini.geoip.custom-directory" class="link">geoip.custom_directory</a> を変更することと同等です。
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.geoip-setup-custom-directory-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">path</code></dt>
    <dd>
     <span class="simpara">
      ディスク上に置くGeoIP データベースのフルパス。
     </span>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.geoip-setup-custom-directory-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   値を返しません。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.geoip-setup-custom-directory-examples">
  <h3 class="title">例</h3>
  <div class="example" id="example-1">
   <p><strong>例1 <span class="function"><strong>geoip_setup_custom_directory()</strong></span> の例</strong></p>
   <div class="example-contents"><p>
    この例は、GeoIP のデータベースパスを変更します。
   </p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />geoip_setup_custom_directory</span><span style="color: #007700">(</span><span style="color: #DD0000">'/some/other/path'</span><span style="color: #007700">);<br /><br />print </span><span style="color: #0000BB">geoip_db_filename</span><span style="color: #007700">(</span><span style="color: #0000BB">GEOIP_COUNTRY_EDITION</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>上の例の出力は以下となります。</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">/some/other/path/GeoIP.dat</pre>
</div>
   </div>
  </div>
 </div>


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