Forum Moderators: coopster

Message Too Old, No Replies

call to undefined function

         

brendan3eb

5:45 am on Aug 3, 2004 (gmt 0)

10+ Year Member



Ok, I named this page email.php and evertime I go to it, I get "call to undefined function", this is my first time using an imap function and I have no idea what the problem could be.
<?
$mbox = imap_open("{localhost:143}INBOX", "email", "pass") ;
?>

crypto

8:35 am on Aug 3, 2004 (gmt 0)

10+ Year Member



Which platform are you working on?

If windows then you'll need to enable the extension php_imap.dll in your php.ini file.

And for *nix:
This extension requires the c-client library to be installed. Grab the latest version from ftp://ftp.cac.washington.edu/imap/ and compile it.

It's important that you do not copy the IMAP source files directly into the system include directory as there may be conflicts. Instead, create a new directory inside the system include directory, such as /usr/local/imap-2000b/ (location and name depend on your setup and IMAP version), and inside this new directory create additional directories named lib/ and include/. From the c-client directory from your IMAP source tree, copy all the *.h files into include/ and all the *.c files into lib/. Additionally when you compiled IMAP, a file named c-client-a was created. Also put this in the lib/ directory but rename it as libc-client.a.

---------- Copied from PHP Manual ---------

brendan3eb

4:05 pm on Aug 3, 2004 (gmt 0)

10+ Year Member



I'm on linux (not sure what type) and I copied and pasted your message and im'd it to the server admin. Thanks For The Help.