mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
19 lines
367 B
PHP
19 lines
367 B
PHP
<?php
|
|
require_once dirname(__FILE__) . '/../../www/config.php';
|
|
|
|
$grp = "a.b.grp";
|
|
$msgid = "2df9e8a3$1$2314$6d4158fb@reader.xsnews.nl";
|
|
|
|
$nntp = new NNTP;
|
|
$nntp->doConnect();
|
|
$sampleBinary = $nntp->getMessages($grp, $msgid);
|
|
$nntp->doQuit();
|
|
|
|
if ($sampleBinary === false)
|
|
{
|
|
echo "-Couldnt fetch binary \n";
|
|
}
|
|
else
|
|
{
|
|
file_put_contents("test.part", $sampleBinary);
|
|
} |