|
Posted by The Newfoundland Shopper on 07/24/07 14:41
Ok the below code connects to the newsgroup server so how do I change it to
post to a newsgroup?
Thanks
Tim
$cfgServer = "news.aliant.net";
$cfgPort = 119;
$cfgTimeOut = 10;
// open a socket
if(!$cfgTimeOut)
// without timeout
$usenet_handle = fsockopen($cfgServer, $cfgPort);
else
// with timeout
$usenet_handle = fsockopen($cfgServer, $cfgPort, &$errno, &$errstr,
$cfgTimeOut);
if(!$usenet_handle) {
echo "Connexion failed\n";
exit();
}
else {
echo "Connected\n";
$tmp = fgets($usenet_handle, 1024);
}
[Back to original message]
|