LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   problem with imap_open() (https://www.linuxquestions.org/questions/programming-9/problem-with-imap_open-28339/)

keevitaja 08-20-2002 08:03 AM

problem with imap_open()
 
when i try to call the function imap_open() in php i get the following error:


Fatal error: Call to undefined function: imap_open() in /var/www/html/mail/imap.php on line 2

phpinfo() shows that mod_imap is loaded. and in php conf file in /etc/php.ini there is imap as well.

why does it still say that i don't have this function?
php version: 4.2.2
apache version: 1.3.23

no2nt 08-22-2002 10:30 AM

mod_imap != IMAP
 
Here's why I think you are getting that error:

mod_imap is an Apache module for server-side imagemap
processing not the IMAP protocol for manipulating mail.

In order to get the imap_open() functionality in
PHP you'll need to recompile PHP with the --with-imap option.
--with-imap requires c-client. See this manual page for a complete
explanation:
http://www.php.net/manual/en/ref.imap.php


All times are GMT -5. The time now is 12:02 AM.