[thelist] getting RSS feeds via PHP

Dan Williams dan at ithium.net
Sat Sep 20 15:49:53 CDT 2003


...but that assumes that his host has not disabled all sockets, which
seems likely. After all, why disable fsockopen() and allow other
methods?

Dan


-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Burhan Khalid
Sent: 20 September 2003 20:12
To: thelist at lists.evolt.org
Subject: Re: [thelist] getting RSS feeds via PHP


Mark Lee wrote:
> Hi all,
> 
> I'm trying to write some php to get, parse, and display RSS feeds.  
> Not
> a monumental task, I thought.
> It seems, however, that my web host has fopen(), fsockopen(), and 
> similar functions disabled.  I tried to be  clever and override this 
> setting with:
> 
> ini_set ( 'allow_url_fopen', '1') or die('oh dang!');
> 
> but of course that'd be too easy. Does anyone have any experience with
> alternate solutions? Is there any way to access remote files without 
> fopen()? Is this a common function for hosting providers to disable?

There is Snoopy (which is a browser emulator class) 
http://snoopy.sourceforge.net

There are a few classes in PEAR that do what you are after.  I believe 
there is a RSS parser class in PEAR already.

cURL might be another option.


-- 
Burhan Khalid
thelist[at]meidomus[dot]com
http://www.meidomus.com

-- 
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 




More information about the thelist mailing list