Re: [PHP] meet problem while use imap_close

2004-06-03 Thread php maillist
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 serverI 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:
[EMAIL PROTECTED] 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?!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] meet problem while use imap_close

2004-05-24 Thread php maillist
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 serverI 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:
[EMAIL PROTECTED] 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?!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem with file_exists()

2003-03-25 Thread maillist
Hi,

I've been reported a weird problem with one of the scripts that we have, which 
uses the file_exists() function. It returned true once, and then the query 
ran again, and it reported false, on the same file. This was true for a lot 
of files in the same directory, but only over a cerain period of time. As I 
had time to try to investigate, the problem stopped occuring. This script has 
been used for a long time, and this is the first time that this has happened. 
I've checked some of the files that they were having problems with, and they 
have not been modified for a few days, so I doubt they were locked or 
anything like that. Does anyone have any idea what could be causing this? 
This is running Solaris 8, Apache 1.3.26 with PHP 4.2.1 compiled into it. 
I've also checked file permissions and they were all good. Any idea would be 
appreciated!

Thanks a lot,
Steve Johnson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php