tags:

views:

26

answers:

0

Hi,

I've got the following code:

print "foo";
imap_open("{localhost:143/imap/notls}", "myname", "mypass");
print "bar";

The script dies. I get zero responds, nothing from apache, no "foo" or "bar", nothing.

I can however connect to the imap server (nc localhost ...), I can also put the script on another server and connect to the same imap server. So, I think there's something wrong with the php on this server. But I can't figure out what I'm missing, forgetting or didn't install. phpinfo() tells me php is configured --with-imap and --with-imap-ssl. The OS is CentOS, btw.