<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/wincache.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'wincache.stats.php',
    1 => 'WinCache 統計スクリプト',
    2 => 'WinCache 統計スクリプト',
  ),
  'up' => 
  array (
    0 => 'wincache.setup.php',
    1 => 'インストール/設定',
  ),
  'prev' => 
  array (
    0 => 'wincache.configuration.php',
    1 => '実行時設定',
  ),
  'next' => 
  array (
    0 => 'wincache.sessionhandler.php',
    1 => 'WinCache セッションハンドラ',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/wincache/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="wincache.stats" class="section">
  <h2 class="title">WinCache 統計スクリプト</h2>
  <p class="para">
   WinCache のインストールパッケージには
   <var class="filename">wincache.php</var> という PHP スクリプトが含まれています。
   これを使えば、キャッシュ情報や統計情報を取得することができます。
  </p>
  <p class="para">
   WinCache 拡張モジュールのインストールを Microsoft Web Platform Installer
   で行った場合は、このスクリプトの場所は
   <var class="filename">%SystemDrive%\Program Files\IIS\Windows Cache for PHP\</var>
   となります。64 ビット版の Windows サーバー OS の場合は
   <var class="filename">%SystemDrive%\Program Files (x86)\IIS\Windows Cache for PHP</var>
   です。拡張モジュールを手動でインストールした場合は、
   インストールパッケージを展開した場所と同じフォルダに
   <var class="filename">wincache.php</var> があります。
  </p>
  <p class="para">
   <var class="filename">wincache.php</var> を使うには、
   ウェブサイトのルートフォルダあるいはその配下のサブフォルダにこのファイルをコピーします。
   スクリプトを保護するために、このファイルをテキストエディタで開いて、定数
   <em>USERNAME</em> と <em>PASSWORD</em>
   の値を変更しましょう。サーバー上で何らかの IIS 認証を有効にしている場合は、
   コメントに書かれている指示に従います。
   <div class="example" id="example-1">
    <p><strong>例1 <var class="filename">wincache.php</var> 用の認証設定</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">/**<br /> * ======================== CONFIGURATION SETTINGS ==============================<br /> * If you do not want to use authentication for this page, set USE_AUTHENTICATION to 0.<br /> * If you use authentication then replace the default password.<br /> */<br /></span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'USE_AUTHENTICATION'</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'USERNAME'</span><span style="color: #007700">, </span><span style="color: #DD0000">'wincache'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'PASSWORD'</span><span style="color: #007700">, </span><span style="color: #DD0000">'wincache'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/**<br /> * The Basic PHP authentication will work only when IIS is configured to support<br /> * Anonymous Authentication' and nothing else. If IIS is configured to support/use<br /> * any other kind of authentication like Basic/Negotiate/Digest etc, this will not work.<br /> * In that case use the array below to define the names of users in your<br /> * domain/network/workgroup which you want to grant access to.<br /> */<br /></span><span style="color: #0000BB">$user_allowed </span><span style="color: #007700">= array(</span><span style="color: #DD0000">'DOMAIN\user1'</span><span style="color: #007700">, </span><span style="color: #DD0000">'DOMAIN\user2'</span><span style="color: #007700">, </span><span style="color: #DD0000">'DOMAIN\user3'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/**<br /> * If the array contains string 'all', then all the users authenticated by IIS<br /> * will have access to the page. Uncomment the below line and comment above line<br /> * to grant access to all users who gets authenticated by IIS.<br /> */<br />/* $user_allowed = array('all'); */<br /><br />/** ===================== END OF CONFIGURATION SETTINGS ========================== */<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
   <blockquote class="note"><p><strong class="note">注意</strong>: 
    <span class="simpara">
     組み込みの認証あるいはサーバーの認証機構を使って、常に
     <var class="filename">wincache.php</var> スクリプトを保護するようにしましょう。
     このスクリプトを保護せずに放置しておくと、アプリケーションやウェブサーバーを危険にさらすことになってしまいます。
    </span>
   </p></blockquote>
  </p>
 </div><?php manual_footer($setup); ?>