Re: meet problem while use imap_close
| From: | php maillist | Date: | Thu, 03 Jun 2004 07:11:00 +0000 |
| Subject: | Re: meet problem while use imap_close | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187507@lists.php.net to get a copy of this message | ||
Let me answer my question myself
my os is installed redhat 9.0 and use imap rpm
after I start deamon imap and imaps
(I didn't start imaps deamon at startup)
everything goes well~!
but it still need to add "/notls" behind protocol
Frederick Kuo 6/3
Php Maillist wrote:
hello everybody, I need help for using imap functions in php I refer the imap functions from the book Professional PHP4 it introduces the imap server from telnet it to writing a brief scripts it teach me that type "telnet localhost 143" behind prompts and I got the right response from my imap server I can fetch my email by command line and watch the correct content but when I processed to the next step, writing a test PHP script for connecting to my imap server....I got error "Warning: Couldn't open stream {127.0.0.1:143)INBOX in /var/www/html/imap_test.php on line 2" I installed the imap module for php by rpm, this error seens but for module include error, but it just can't connect to my imap server I searched imap in php maillist, someone discuss that the first parameter should expressed as {127.0.0.1:143/imap/notls} etc... but i tried a lot of different ways..It still couldn't work I didn't know to much about my imap server ..I just confirm that I can use any mailing software to connect to my imap server for recesiving mail correctly query my rpms I got this: [yhvh@a614-3 yhvh]$ rpm -qa|grep imap php-imap-4.2.2-17 imap-2001a-18 is there anyone could give me a hand?..I really confused... thanx a lot~!!!!! PS: I looking for imap functions in squirrelmail..I found that he connect to imap server by fsockopen?!