array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'imap.installation.php', 1 => '安装', ), 'up' => array ( 0 => 'imap.setup.php', 1 => '安装/配置', ), 'prev' => array ( 0 => 'imap.requirements.php', 1 => '需求', ), 'next' => array ( 0 => 'imap.configuration.php', 1 => '运行时配置', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/imap/configure.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
要使这些函数生效,你必须在编译 PHP 的时候添加 --with-imap[=DIR] 选项, DIR 表示c-client安装前缀。比如上面提到的例子中,你可以使用 --with-imap=/usr/local/imap-2000b. 根据以上描述,这个路径是指向你先前创建的文件夹。对于 Windows 用户,应该在 php.ini 文件中引入php_imap.dll.
注意: 因为取决于 c-client 是如何配置的,所以你应该向 PHP 配置行添加--with-imap-ssl=/path/to/openssl/ 或者 --with-kerberos=/path/to/kerberos 配置信息。
IMAP 扩展不是线程安全的;它不应该被用于 ZTS 构建。