Re: [PHP] CAN NOT read qmail

2008-04-17 Thread Yui Hiroaki
Thank you! the perssion is 600 even when I try to change permission. This mail will return 600 soon. Regards, yui 2008/4/18, Jay Blanchard <[EMAIL PROTECTED]>: > [snip] > > I try your code; > > It is great. > But I get "faile". > > [/snip] > > If you get a failure then you might not have perm

RE: [PHP] CAN NOT read qmail

2008-04-17 Thread Jay Blanchard
[snip] I try your code; It is great. But I get "faile". [/snip] If you get a failure then you might not have permission to open the file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CAN NOT read qmail

2008-04-17 Thread Yui Hiroaki
I try your code; It is great. But I get "faile". It means I can not open the file, which is from qmail. It may be different format of qmail I get below from code failed for 1208434346177.9690.domain.com code--- "; } }else{ die("fopen failed for $

RE: [PHP] CAN NOT read qmail

2008-04-17 Thread Jay Blanchard
[snip] I do not get it. I do not where code has basic mistake. [/snip] And that is why putting in basic error checking will help, for instance; $fp = fopen($file, "r"); if($fp){ while(!feof($fp)) { $data = fgets($fp, 1024); echo "$data "; } } else {

Re: [PHP] CAN NOT read qmail

2008-04-17 Thread Yui Hiroaki
I do not get it. I do not where code has basic mistake. I do not have any error message. When I read qmail. My browser is stopped. Regards, yui 2008/4/18, Jay Blanchard <[EMAIL PROTECTED]>: > [snip] > > > I have a question about read to qmail. > > I try to read qmail using php. But I can not >

RE: [PHP] CAN NOT read qmail

2008-04-17 Thread Jay Blanchard
[snip] I have a question about read to qmail. I try to read qmail using php. But I can not read it. the code is below- "; } fclose($fp); - [/snip] Insert some basic error checking code to see if you successfully opened the fil