PHP Classes
elePHPant
Icontem

File: connect.inc

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nadir Latif  >  Usenet Downloader  >  connect.inc  >  Download  
File: connect.inc
Role: Auxiliary script
Content type: text/plain
Description: used to connect to nntp server
Class: Usenet Downloader
Retrieve newsgroup articles from NNTP servers
Author: By
Last change:
Date: 6 years ago
Size: 239 bytes
 

Contents

Class file image Download
<?php
require "nntp.inc";

function
ConnectToServer($server)
    {
       
$nntp = new nntp;
       
$common = new nntpcommon;

        if(!
$nntp->connect($server))
            {
                   
//die ("Connection failed\n");
               
return false;
            }
        return
$nntp;
    }
?>