On Thu, Apr 18, 2002 at 01:55:47AM +0200, Trond Arve Nordheim wrote:
> Now, it seems like slashdot is doing som on-the-fly gzip-compression (it
> sends a "Content-Encoding: gzip"-header), and that fopen can't cope with
> this, and I'm stuck with some binary data. I've tried using
> gzuncompress()
Hi.
I was writing a slashdot RSS-parser for my homepage, and wrote a simple
function to fetch the slashdot.rdf-file from slashdot, and parse it
using PEAR's XML/RSS.php.
Here's the core reading the remote file:
$fp = @fopen("http://slashdot.org/slashdot.rdf";, "r");
if (!$fp) { return 0; }
$raw
2 matches
Mail list logo