Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

PHP/IMAP installs with no errors, can't call IMAP functions
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

Report this thread to moderator Post Follow-up to this message
Old Post
Erin Spiceland
09-22-06 11:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Installation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:16 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.