Documentation is available at connect.php
$posting = $nntp->connect('news.php.net'); if (PEAR::isError($posting)) { // handle error }