|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Dec 2006
Location: /dev/swat
Posts: 536
|
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:
I did a test something like to see whether imap is loaded or not: PHP Code:
Quote:
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 |
||
|
|
|
|
|
#2 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Oct 2009
Posts: 463
|
extension must be loaded in php.ini
run script with phpinfo(), note php.ini location from it and then edit |
|
|
|
|
|
#3 | |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Dec 2006
Location: /dev/swat
Posts: 536
|
Thanks Shrapnel_N5,
Before reading your post here, what i did were: I open php.ini on the server and search for "extension=imap.so" which was there and not commented, so it mean it was enabled. Then i open conf.d directory and look for imap.ini which was not there. So what i did: Quote:
And the great thing is, it works. Thanks again. Hope, it will be helpful for some one in future. |
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 16:08.








Linear Mode
