sspssp / nntp
This package is abandoned and no longer maintained.
No replacement package was suggested.
PHP class to read and write NNTP Posts
dev-master
2014-01-22 10:45 UTC
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2020-01-20 07:12:24 UTC
README
This Class is Testet With http://www.wendzel.de/software/wendzelnntpd.html
HowToUse
Connect to a Server:
$nntp = new SSP\NNTP\NNTP();
$nntp->connect($server); //Return true or false
$nntp->autentifizierung($user, $pass); //Return true or false
Get the Group List as an Array:
$nntp->listGroups(); //Return an Array or False
Change Group:
$nntp->changeGroup($name); //Return true or false
Get a Message Header:
$nntp->getHeadDetails($id); //Return an Array or false
$nntp->getHead($id, $group); //Return an Array or false
Get a Message Body:
$nntp->getBody($id); //Return an String with "\r\n" or fase
$nntp->getBody($id, $group); //Return an String with "\r\n" or fase
Post a Message:
$nntp->post($board, $subject, $message, $from); //Return true or false
$nntp->post($board, $subject, $message, $from, array("MoreHeaderInfo" => "Value", "MuchMoreHeaderInfo" => "Value2")); //Return true or false