I'm not a PHP programmer so forgive my ignorance when it comes to the
language. I recently recompiled PHP with IMAP support by doing:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml
--enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes
--with-mysql=/usr --enable-discard-path --with-pear --enable-sockets
--enable-track-vars --enable-versioning --with-zlib --with-gd
--with-jpeg-dir=/usr/ --with-png-dir=/usr/ --with-ldap=/usr/ --with-imap
--with-imap-ssl; make; make install
Configure ran with no errors, output indicated that IMAP had been found
and would be supported, make and make install ran smoothly with no
errors. Loaded Modules section in phpinfo() includes mod_imap after,
but not before, install. I'm using egroupware, whose check-install
script says:
Checking extension imap is loaded or loadable: False
The imap extension is needed by the two email apps (even if you use
email with pop3 as protocoll).
The code that generates this msg is as follows (c/p from egroupware):
'imap' => array(
'func' => 'extension_check',
'warning' => '<div class="setup_info">' . lang('The imap extension is
needed by the two email apps (even if you use email with pop3 as
protocoll).') . '</div>'
),
function extension_check($name,$args)
{
global $passed_icon, $error_icon, $warning_icon,
$is_windows;
if (isset($args['win_only']) && $args['win_only'] && !
$is_windows)
{
return True; // check only under windows
}
// we check for the existens of 'dl', as multithreaded
webservers dont have it !!!
$available = extension_loaded($name) ||
function_exists('dl') &&
@dl(PHP_SHLIB_PREFIX.$name.'.'.PHP_SHLIB_SUFFIX);
echo '<div>'.($available ? $passed_icon :
$warning_icon).' <span'.($available ? '' : '
class="setup_warning"').'>'.lang('Checking extension %1 is loaded or
loadable',$name).': '.($available ? lang('True') :
lang('False'))."</span></div>\n";
if (!$available)
{
echo $args['warning'];
}
echo "\n";
return $available;
}
What can I do to get IMAP working?
Thanks for your help!
Erin
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]