Files
newznab-tmux/lib/copy_this/misc/testing/getPart.php
T
2015-04-27 22:50:08 +02:00

19 lines
366 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->getMessage($grp, $msgid);
$nntp->doQuit();
if ($sampleBinary === false)
{
echo "-Couldnt fetch binary \n";
}
else
{
file_put_contents("test.part", $sampleBinary);
}