Bluehost.com Web Hosting $6.95

imap_open and NNTP

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'...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-06-2004
Rodney Pont
 
Posts: n/a
Default imap_open and NNTP

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


Reply With Quote
  #2 (permalink)  
Old 02-06-2004
Janwillem Borleffs
 
Posts: n/a
Default Re: imap_open and NNTP


"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



Reply With Quote
  #3 (permalink)  
Old 02-06-2004
Rodney Pont
 
Posts: n/a
Default Re: imap_open and NNTP

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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0