pear net_nntp

A

Anonymous

Guest
Hi all,

just started with pear net_nntp. Followed the online documentation from pear, but i can't figure out my connection issues to a news server.

I followed:
http://pear.php.net/manual/en/package.networking.net-nntp.ancient.connectauthenticated.php

I used:

Code:
require_once 'Net/NNTP.php';

boolean Net_NNTP::connectAuthenticated ( 
integer $user = <user>, 
integer $pass = <pass>, 
string $host = <news-server>, 
integer $port = NET_NNTP_PROTOCOL_DEFAULT_PORT, 
integer $authmode = NET_NNTP_AUTHORIGINAL )

The error i got:

PHP Parse error: syntax error, unexpected 'Net_NNTP' (T_STRING) in /data/http/connect.php on line 3

Any ideas of what i'm doing wrong ?
 
i'd say throw some parentheses around your require_once() call. like...

Code:
    require_once('Net/NNTP.php');

    boolean Net_NNTP::connectAuthenticated (
    integer $user = <user>,
    integer $pass = <pass>,
    string $host = <news-server>,
    integer $port = NET_NNTP_PROTOCOL_DEFAULT_PORT,
    integer $authmode = NET_NNTP_AUTHORIGINAL )
 
Back
Top