[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Don't understand if IMAP is running or not.



Bert Catsburg <bert@xxxxxxxxxxxx> wrote:
> I have a question on IMAP and PHP.
> I executed the following program on my RAQ2:
> <?
> $mailbox = imap_open("{mail.myserver.com}INBOX", "user", "password");
> $check = imap_check($mailbox);
> imap_close($mailbox);
> ?>
>
> The following error is returned:
> "
>   Fatal error: Call to unsupported or undefined function imap_open()
>   in /home/sites/site5/web/imapchk.php3 on line 8


According to http://www.php.net/manual/ref.imap.php you need to compile PHP
with the imap option.  Did you do that?  A quick test reveals I get the same
error on my RaQ2.  I installed PHP 3.0.15, but don't remember explicitly
compiling with "--with-imap" so that's probably why.

Steven {steven@xxxxxxxxxxxx}