<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'wincache.stats.php',
    1 => 'Script de statistiques WinCache',
    2 => 'Script de statistiques WinCache',
  ),
  'up' => 
  array (
    0 => 'wincache.setup.php',
    1 => 'Installation/Configuration',
  ),
  'prev' => 
  array (
    0 => 'wincache.configuration.php',
    1 => 'Configuration &agrave; l\'ex&eacute;cution',
  ),
  'next' => 
  array (
    0 => 'wincache.sessionhandler.php',
    1 => 'WinCache Session Handler',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    '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">Script de statistiques WinCache</h2>
  <p class="para">
   Le package d&#039;installation pour WinCache inclut un script PHP,
   <var class="filename">wincache.php</var>, qui peut être utilisé pour obtenir des informations et des 
   statistiques sur le cache.
  </p>
  <p class="para">
   Si l&#039;extension WinCache a été installée via l&#039;installeur de Microsoft Web Platform, 
   alors ce script se trouve dans 
   <var class="filename">%SystemDrive%\Program Files\IIS\Windows Cache for PHP\</var>. 
   Sur une version 64 bits du système d&#039;exploitation Windows Server, le script se trouve dans
   <var class="filename">%SystemDrive%\Program Files (x86)\IIS\Windows Cache for PHP</var>. 
   Si l&#039;extension a été installée manuellement, alors le fichier <var class="filename">wincache.php</var> 
   sera situé dans le même dossier à partir duquel le contenu du package d&#039;installation a été extrait. 
  </p>
  <p class="para">
   Pour utiliser <var class="filename">wincache.php</var>, copiez-le dans le dossier racine d&#039;un site Web ou 
   dans n&#039;importe quel sous-dossier. Pour protéger le script, ouvrez-le dans n&#039;importe quel éditeur et 
   remplacez les valeurs des constantes <em>USERNAME</em> et <em>PASSWORD</em>.
   Si n&#039;importe quel autre authentification IIS est activée sur le serveur, alors suivez les instructions
   dans les commentaires :
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Configuration de l&#039;authentification pour <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">Note</strong>: 
    <span class="simpara">
     Protégez toujours le script <var class="filename">wincache.php</var> en utilisant soit 
     le mécanisme d&#039;authentification intégré ou le mécanisme d&#039;authentification du serveur. 
     Laisser ce script non protégé peut compromettre la sécurité de l&#039;application web 
     et du serveur.
    </span>
   </p></blockquote>
  </p>
 </div><?php manual_footer($setup); ?>