problem with getting data from NNTP server

From: Date: Sun, 16 Sep 2001 11:53:39 +0000
Subject: problem with getting data from NNTP server
Groups: php.general 
Request: Send a blank email to php-general+get-67492@lists.php.net to get a copy of this message
I have script for getting header of article from NNTP server using sockets: <? $conn = fsockopen("csnews.vslib.cz", 119); fputs($conn, "GROUP cz.comp.lang.php\r\n"); fputs($conn, "HEAD 3600\r\n"); while ($result = fgets($conn, 2048)) { if (substr($result, 0, 1) == ".") break; echo $result."<br>"; } ?> output have look so: ... Path: csnews.vslib.cz!not-for-mail From: "Antonin Mohaupt" <tony.c@anexis.cz> Newsgroups: cz.comp.lang.php ... but it is only ... Path: csnews.vslib.cz!not-for-mail From: "Antonin Mohaupt" Newsgroups: cz.comp.lang.php ... What's the problem ? I tried higher raise length of data (second argument of fgets()), but with no result. When I am doing it by telnet, all is ok. What to do ? Luboslav Gabal

« previous php.general (#67492) next »