<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/imap.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'imap.installation.php',
    1 => 'Installation',
    2 => 'Installation',
  ),
  'up' => 
  array (
    0 => 'imap.setup.php',
    1 => 'Installing/Configuring',
  ),
  'prev' => 
  array (
    0 => 'imap.requirements.php',
    1 => 'Requirements',
  ),
  'next' => 
  array (
    0 => 'imap.configuration.php',
    1 => 'Runtime Configuration',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/imap/configure.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imap.installation" class="section">
 <h2 class="title">Installation</h2>
 <div class="section" id="imap.installation.php84">
  <h2 class="title">PHP 8.4</h2>
  <p class="para">
   This extension has been moved to the <a href="https://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a>
repository and is no longer bundled with PHP as of PHP 8.4.0
  </p>
  <p class="para">
   Information for installing this PECL extension may be
found in the manual chapter titled <a href="install.pecl.php" class="link">Installation
of PECL extensions</a>. Additional information such as new releases,
downloads, source files, maintainer information, and a CHANGELOG, can be
located here: 
   <a href="https://pecl.php.net/package/imap" class="link external">&raquo;&nbsp;https://pecl.php.net/package/imap</a>.
  </p>
 </div>

 <div class="section" id="imap.installation.phplt84">
  <h2 class="title">PHP &lt; 8.4</h2>
  <p class="para">
   To get these functions to work, you have to compile PHP with
   <strong class="option configure">--with-imap[=DIR]</strong>, where DIR is the
   c-client install prefix.  From our example above, you would use
   <strong class="option configure">--with-imap=/usr/local/imap-2000b</strong>.
   This location depends on where you created this directory according to the
   description above. <span class="productname">Windows</span> users may include the
   <var class="filename">php_imap.dll</var> DLL in <var class="filename">php.ini</var>.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <span class="simpara">
    Depending on how the c-client was configured, you might also need
    to add <strong class="option configure">--with-imap-ssl=/path/to/openssl/</strong> and/or
    <strong class="option configure">--with-kerberos=/path/to/kerberos</strong>
    to the PHP configure line.
   </span>
  </p></blockquote>

  <div class="warning"><strong class="warning">Warning</strong>
   <p class="simpara">
    The IMAP extension is not thread-safe; it should not be used with ZTS builds.
   </p>
  </div>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">The <a href="book.imap.php" class="link">IMAP</a>, <a href="book.recode.php" class="link">recode</a> and
<a href="book.yaz.php" class="link">YAZ</a>
extensions cannot be used in conjunction, because they
share the same internal symbols. Note: Yaz 2.0 and above does not suffer from this problem.</p></div>
 </div>

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