PHP code example of kissifrot / php-nntp
1. Go to this page and download the library: Download kissifrot/php-nntp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kissifrot / php-nntp example snippets
use Rvdv\Nntp\Connection\Connection;
use Rvdv\Nntp\Client;
$connection = new Connection('news.php.net', 119);
$client = new Client($connection);
$client->connect();
$command = $client->overviewFormat();
$overviewFormat = $command->getResult();
$command = $client->group('php.doc');
$group = $command->getResult();
$command = $client->xover($group['first'], $group['first'] + 100, $overviewFormat);
$articles = $command->getResult();
// Process the articles further...
$client->disconnect();