Log in

View Full Version : Please help me,



ajfmrf
01-15-2011, 12:04 AM
I am a nnewbie at rss and php and am getting errors on these pages:


I tried two example pages from simplepie and they did not work for me.Here are the pages I made using html and php files ( figured I had it wrong because one did not work.I included the page at Simplepie where I got the pages. and both of my files.

Note, the only difference in my two files in each case is the file type.- php or html-otherwise they are the exact same thing.


example 1

http://simplepie.org/wiki/tutorial/h..._google_reader

my files:
http://web-user.net/rss/111.php
or
http://web-user.net/rss/111.html
or
http://web-user.net/rss/111.txt



example 2

http://simplepie.org/wiki/setup/sample_page

http://web-user.net/rss/atest.html
http://web-user.net/rss/atest.php
http://web-user.net/rss/atest.txt

John suggested I post here due to the errors I am getting.John has been trying to help me with the rss display box script to get a few more things to display.

These scripts were cut and pasted from simplepie.I am at a lose as to why they don't work.
Any help would be appreciated.

I have simplepie in rss/simplepie



Bud

bluewalrus
01-15-2011, 05:06 AM
PHP code needs to be entered for help with it. It is not displayed on the client side.

ajfmrf
01-16-2011, 04:23 AM
the text file is that ok?


I added both to the original post so as to not take anymore posts up but seeing no other post I put this so people will see I added it.....

bluewalrus
01-16-2011, 05:22 AM
Example 1 and 2 have the same problem I think which is that your missing the configuration file (I think that's what it is).


// Make sure SimplePie is included. You may need to change this to match the location of simplepie.inc.
require_once('..rss/simplepie.inc');

ajfmrf
01-17-2011, 01:20 AM
These are the same ,except for the file extention being php and txt.

http://web-user.net/rss/atest.php
http://web-user.net/rss/atest.txt


This now gives me:

Fatal error: Call to undefined method SimplePie::set_feed_url() in *********/rss/atest.php on line 10

And now
http://web-user.net/rss/111.php
http://web-user.net/rss/111.txt

Which are both the same except for the etentions php and txt.

And these now give me this error:
Fatal error: Call to undefined method SimplePie::set_feed_url() in /home/bud/public_html/rss/111.php on line 42

Has the newest version of simple pie changed making what was once working in an earlier version not work???

Thanks,

Bud

bluewalrus
01-18-2011, 11:20 PM
The problem is your require is calling this http://web-user.net/rss/simplepie.inc

which as you can see doesn't exist so you either need to put the file there or change the location in your require.