Help - Search - Members - Calendar
Full Version: php function imap_open() not found
Hostony Board > General Support > PHP/MySQL
alaa
got a php script that monitors a mailbox using the imap_open() function, I get this error when using it

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


does this mean php was compiled without imap support? any reason? any work around?

cheers,
Alaa
Vanya
What is your domain name?
alaa
sorry for not giving more info.

domain is devcabal.org

cheers,
Alaa
Stanly
Please have a look at http://67.15.42.48/~tecwiz/phpinfo.php
As you can see there IMAP support is enabled for PHP.
alaa
well I can't access the imap_open() function at all.

check http://www.devcabal.org/foo.php

its running this code
CODE
<?php

echo "<pre>".implode("\n",get_loaded_extensions())."</pre>";

dl("imap.so");
if (extension_loaded("imap")) echo "<pre>imap loaded</pre>";
else echo "<pre>imap not loaded</pre>";

imap_open("server", "username", "password");

?>


and it gives me this result
CODE
xslt
xml
tokenizer
standard
sockets
session
posix
pgsql
pcre
overload
mysql
mhash
mcrypt
mbstring
iconv
gd
ftp
domxml
curl
ctype
calendar
bcmath
zlib
openssl
apache
ming

Warning: dl(): Unable to load dynamic library '/usr/local/apache/php_extensions/imap.so' - /usr/local/apache/php_extensions/imap.so: cannot open shared object file: No such file or directory in /home/devcabal/public_html/foo.php on line 5


imap not loaded

Fatal error: Call to undefined function: imap_open() in /home/devcabal/public_html/foo.php on line 9


soo where is imap?
Vanya
We'll try to reinstall mysql.
alaa
reinstall mysql??

the imap_open() function is undefined because of mysql?

or did you mean php??
Vanya
Sorry, i meant ph with imap support.
alaa
:-)

thanx

cheers,
Alaa
alaa
no news about thiss?

I realy need to use imap_open()

maybe I need to make a ticket.

cheers.
Alaa
Vanya
We've re-installed it but the problem seems to be there still.
We're investigating.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here