0
The PHP imap extension works only via the command line.
When calling the script from another place the return is:
PHP Fatal error: Uncaught Error: Call to undefined function imap_open()
When running a simple script in cli the function runs correctly.
The server is PHP 7.1.15 running on an ubuntu16.04.
Right now I’m running out of clues to the cause or other information and I’m drifting, to tell you the truth. If you need information, I’ll publish it, because I have no idea what else might be relevant.
Any help is welcome, thank you!
Thanks William, I followed the steps but the problem persisted. I fixed the PHP version in the post, is 7.1. This server has several installed versions. This server has added ini files in conf. d: /conf. d/20-imap.ini E inside the file has: Extension=imap.so On the return of the phpinfo() function this file is listed in Additional . ini files Parsed.
– Felipe Chagas