hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : PHP IMAP problems

Forum Jump

PHP IMAP problems

Reply Post New Thread In Programming Discussion Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Old 12-16-2004, 04:01 PM
Farstate Farstate is offline
New Member
Join Date: Dec 2004
Posts: 1

PHP IMAP problems

Fatal error: Call to undefined function: imap_open() in xxxx

I have found many occurances of this problem through Google but no resolution. Basically my script is returning the above fatal error which says to me that IMAP is not installed, which is the same opinion of most other programmers around the Net. However IMAP is installed - I even have SquirrelMail, Horde IMP & NeoMail installed on the server...all working fine.

Anyone have any other ideas as to why this doesn't work?

The code is below, a sample script from the site.

PHP Code:
$mbox imap_open ("{}""farcom""firestor");

$folders imap_listmailbox ($mbox"{}""*");

if (
$folders == false) {
"Call failed<br>\n";
} else {
    while (list (
$key$val) = each ($folders)) {

"<p><h1>Headers in INBOX</h1>\n";
$headers imap_headers ($mbox);

if (
$headers == false) {
"Call failed<br>\n";
} else {
    while (list (
$key,$val) = each ($headers)) {


Sponsored Links
Old 12-16-2004, 04:41 PM
ringnebula ringnebula is offline
Aspiring Evangelist
Join Date: Jun 2003
Location: Ukiah, California
Posts: 394
Looks like maybe you don't have imap support compiled into php. Perhaps a recompile is in order?

Jacob Turner -- Ringnebula Systems
Managed IT solutions for small business

Old 12-16-2004, 05:12 PM
Vult-r Vult-r is offline
WHT Addict
Join Date: Nov 2003
Location: Netherlands
Posts: 149
sounds like php itself doesnt have it installed..maybe you didnt enable the extensions for php..

for linux server
re-compile PHP with imap, include --with-imap in the arguments. you probaably need the imap libs and include files too for this.

quote from
'' To get these functions to work, you have to compile PHP with --with-imap[=DIR], where DIR is the c-client install prefix. From our example above, you would use --with-imap=/usr/local/imap-2000b. This location depends on where you created this directory according to the description above. Windows users may include the php_imap.dll DLL in php.ini ''

for windows server
edit the php.ini and remove ';' from the line:

also you might need to copy the php_imap.dll into the /php and /system32 folder to get it to load.

Sponsored Links

Related posts from
Title Type Date Posted
Nominet Pilot Program Hopes to Help SMBs Combat Cyber Threats with Support, Advice Web Hosting News 2014-02-07 15:12:39
Windows Azure, Xbox Live Experience Problems as Xbox One Launches Web Hosting News 2013-11-22 13:05:40
NSA Data Center Plagued by Electrical Problems Web Hosting News 2013-10-08 14:12:56
Amazon Web Services Northern Virginia Outage Rocks Instagram, Vine Web Hosting News 2013-08-26 14:33:03
Five Rules for Moving to the Cloud Blog 2013-07-24 09:27:00

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?