This is a discussion on imap_open and NNTP within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I'm trying to use imap_open to get news from a server that requires a user name and password. I'...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm trying to use imap_open to get news from a server that requires a
user name and password. I'm using $nntp = imap_open("{".$newsserver."/nntp:".$port."}".$newsgroup, $newsuser, $newspass, OP_ANONYMOUS); and it's failing to connect. The PHP docs show using user/password with email but not nntp. Am I trying to use imap_open to do something it's not able to? -- Regards - Rodney Pont The from address exists but is mostly dumped, please send any emails to the address below e-mail ngps07 (at) infohit (dot) fsnet (dot) co (dot) uk |
|
|||
|
"Rodney Pont" <spam07@infohit.fsnet.co.uk> wrote in message news:atcfvasbuvgsfargpbhx.hso1nx1.pminews@ihs1... > I'm trying to use imap_open to get news from a server that requires a > user name and password. > > I'm using > > $nntp = imap_open("{".$newsserver."/nntp:".$port."}".$newsgroup, > $newsuser, $newspass, OP_ANONYMOUS); > > and it's failing to connect. > Try: $nntp = imap_open ("{".$newsserver.":$port/nntp"."}".$newsgroup, $newsuser, $newspass); JW |
|
|||
|
On Fri, 6 Feb 2004 14:10:07 +0100, Janwillem Borleffs wrote:
> >"Rodney Pont" <spam07@infohit.fsnet.co.uk> wrote in message >news:atcfvasbuvgsfargpbhx.hso1nx1.pminews@ihs1. .. >> I'm trying to use imap_open to get news from a server that requires a >> user name and password. >> >> I'm using >> >> $nntp = imap_open("{".$newsserver."/nntp:".$port."}".$newsgroup, >> $newsuser, $newspass, OP_ANONYMOUS); >> >> and it's failing to connect. >> > >Try: > >$nntp = imap_open ("{".$newsserver.":$port/nntp"."}".$newsgroup, $newsuser, >$newspass); That's fixed it. I would never have seen that since it worked without authentication. Thank you very much. -- Regards - Rodney Pont The from address exists but is mostly dumped, please send any emails to the address below e-mail ngps07 (at) infohit (dot) fsnet (dot) co (dot) uk |