Re: problem with getting data from NNTP server
| From: | Christopher William Wesley | Date: | Sun, 16 Sep 2001 17:07:27 +0000 |
| Subject: | Re: problem with getting data from NNTP server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67506@lists.php.net to get a copy of this message | ||
On Sun, 16 Sep 2001, Luboslav Gabal ml. wrote:
> I have script for getting header of article from NNTP server using sockets:
> output have look so:
> From: "Antonin Mohaupt" <tony.c@anexis.cz>
> but it is only
> From: "Antonin Mohaupt"
> What's the problem ? I tried higher raise length of data (second argument of
Anything between < and > will look like an HTML tag to your browser. If
you view the source of the HTML in your browser, I'm sure you'll see
<tony.c@anexis.cz> :) You browser just doesn't know how to display that
tag (because it's not one). Change your echo line from
echo $result."<br>";
to
echo htmlspecialchars($result)."<br>";
This will convert "<" to "<" and ">" to
">" so it will be displayed
in your browser correctly.
For more info: http://php.net/htmlspecialchars
~Chris /"\
\ / September 11, 2001
X We Are All New Yorkers
/ \ rm -rf /bin/laden