FeedForAll Forum Index ?
?Home?????FAQ????? Search ?????Memberlist ?????Register ?????Profile? ????Log in
?How to display php rss feeds. View next topic
View previous topic
Post new topicReply to topic
Author Message
firyace



Joined: 22 May 2006
Posts: 5

PostPosted: Mon May 22, 2006 2:47 am Reply with quoteBack to top

Hi, A few days ago I have been able to generate rss feeds in php format. However, I don't know how to display it onto my html webpages. I have learnt how to do it with .xml, but how can you do it with .php file type?

Thanks
View user's profileSend private messageVisit poster's website
Tech Support



Joined: 27 Aug 2004
Posts: 1072

PostPosted: Mon May 22, 2006 10:04 am Reply with quoteBack to top

Take a look at our rss2html.php script. More info here:

http://www.feedforall.com/forum/viewforum.php?f=8

_________________
FeedForAll Support
View user's profileSend private message
firyace



Joined: 22 May 2006
Posts: 5

PostPosted: Mon May 22, 2006 2:16 pm Reply with quoteBack to top

Hi thanks for the reply. I have just tried the software, and it works flawlessly with xml extensions, but my problem is that I have a .php extension for my rss feed. I have a .php extension because I am generating feeds that I wrote to be posted on a later date in a randomized manner, but the program that I used generates a php script instead of xml. So is there any other suggestion?

Thanks!
View user's profileSend private messageVisit poster's website
Tech Support



Joined: 27 Aug 2004
Posts: 1072

PostPosted: Mon May 22, 2006 3:33 pm Reply with quoteBack to top

Can you post a link to it so I can see what is going on?

Thanks.

_________________
FeedForAll Support
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 1370

PostPosted: Mon May 22, 2006 5:02 pm Reply with quoteBack to top

firyace wrote:
Hi thanks for the reply. I have just tried the software, and it works flawlessly with xml extensions, but my problem is that I have a .php extension for my rss feed. I have a .php extension because I am generating feeds that I wrote to be posted on a later date in a randomized manner, but the program that I used generates a php script instead of xml. So is there any other suggestion?

Thanks!


What you are probably missing is
Code:
? ? header("Content-type: application/xml");


Jim
View user's profileSend private messageVisit poster's website
firyace



Joined: 22 May 2006
Posts: 5

PostPosted: Tue May 23, 2006 12:19 am Reply with quoteBack to top

Quote:
What you are probably missing is
Code:
header("Content-type: application/xml");


Jim


Hi Jim, I was just wondering what is this code suppose to do?
Does it just redefine the content as of xml type? But how then can you make the php script print the content into an xml file?

And where do I put the code into?
Should I make it a separate .php file and put it as header or should I put the code straight into an html page and put this code on the top of the php script?

And can I just implement the php script onto an html page?

I have tried to add an .htaccess file with the line:
Code:
AddType application/x-httpd-php .php .htm .html .shtml


but when I load up my index.html, it didn't show the feeds at all.


Thanks for the replies!
View user's profileSend private messageVisit poster's website
MacSupport



Joined: 24 Feb 2005
Posts: 1370

PostPosted: Tue May 23, 2006 12:49 am Reply with quoteBack to top

Probably we don't understand the question. What are you trying to do? You can display XML in PHP by writing it out just like you would do the write HTML.

Jim
View user's profileSend private messageVisit poster's website
firyace



Joined: 22 May 2006
Posts: 5

PostPosted: Tue May 23, 2006 3:44 am Reply with quoteBack to top

Hi, I am trying to put .php feeds onto a html page.

Or, if possible, I want to convert the .php feeds into .xml extension.

Thanks
View user's profileSend private messageVisit poster's website
MacSupport



Joined: 24 Feb 2005
Posts: 1370

PostPosted: Tue May 23, 2006 10:20 am Reply with quoteBack to top

firyace wrote:
Hi, I am trying to put .php feeds onto a html page.

Or, if possible, I want to convert the .php feeds into .xml extension.

Thanks


What is a .php feed? If you mean a feed that is generated by a URL that ends in .php, then rss2html.php will work just fine.

Jim
View user's profileSend private messageVisit poster's website
firyace



Joined: 22 May 2006
Posts: 5

PostPosted: Tue May 23, 2006 7:07 pm Reply with quoteBack to top

Quote:
What is a .php feed? If you mean a feed that is generated by a URL that ends in .php, then rss2html.php will work just fine.

Jim


I thought so too, but for some reason it did not work, it generates error code onto my webpage, so I don't know what is going on. However I tried with a feed in the .xml extension and the program worked.
View user's profileSend private messageVisit poster's website
Display posts from previous:?? ? ?
Post new topicReply to topic


?Jump to:? ?



View next topic
View previous topic


Powered by phpBB ? 2001, 2002 phpBB Group :: FI Theme