I re-opened a dusty old script in my archives, one which uses IMAP. Decided that I would use PHP5 from now on, since PHP4 has been discontinued.
Installing PHP5 was pretty easy. Just unzip it into a folder, tweak PHP.INI settings, especially display_errors, enable extensions for imap, and don’t forget to set the extension_dir.
Include this in Apache httpd.conf
ScriptAlias /php/ “c:/php-5.2.5/”
AddType application/x-httpd-php .php
Action application/x-httpd-php “/php/php-cgi.exe”
IMAP also wasn’t working on Dreamhost. After a bit of Googling, found out that I needed to change the parameters for imap_open to:
imap_open(“{mail.domain.com:143/notls}INBOX”,’user’,'pass’);
Whew, those issues took an hour to do!