Web Hosting

Web Hosting

Web hosting guide with links, news, and user comments about web hosts

Imap not working in cron, working in browser

Hi all,
I have a script which i run by cron every 5 minutes. Script contains Imap function to grab mails from a window remote server. I am stuck here, because whenever i run it under cron it throw an error stating that:
Quote:
Fatal error: Call to undefined function imap_open() in
But if i run the same script from a browser, it works and download the mails.

I did a test something like to see whether imap is loaded or not:
PHP Code:
It shows that imap is loaded:
Quote:
zip
xmlwriter
libxml
xml
wddx
tokenizer
sysvshm
sysvsem
sysvmsg
session
SimpleXML
sockets
soap
SPL
shmop
standard
Reflection
posix
mime_magic
mbstring
json
iconv
hash
gettext
ftp
filter
exif
dom
dba
date
ctype
calendar
bz2
bcmath
zlib
pcre
openssl
xmlreader
apache2handler
imap
mcrypt
mysql
mysqli
PDO
pdo_mysql


Warning: dl() [function.dl]: Dynamically loaded extensions aren't enabled in /var/www/pocslope/home/imap_load.php on line 5

imap loaded
Its a dedicated server running Ubuntu 8.04LTS server edition.
I tried to install C-client module, its installed already now. PHPinfo is showing that imap is installed with C-client 2004 module. Also installed php-cli but no luck.
Any ideas?
Thanks
Sponsors
Comments
Be the first to leave a comment!
Add a Comment:
Already a member? Log In
Sponsors
About the Author

8 Kudos
Top Geek Articles
Celebrities on the Phone
Cell phones are to celebrities like bats are to baseball: no one runs too far without them.
Why every guy should buy their girlfriend Wii Fit.
Gratuitous...
Hot Geeks -- The Sexiest Geeky Girls
These girls are gorgeous AND they'll play Warcraft with you. Doesn't get much better than that.
More From Zimbio
Copyright © 2009 - Zimbio, Inc. Some rights reserved.