| | |
Displaying RSS feed on web site using rss2html.php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hello all, first off, I am no PHP coder. I would like to display RSS feeds from other sites, to my index.php on my site. I found this script at http://www.feedforall.com/free-php-script.htm. It's a php script for this just that, but it displayes in the php file (rss2html.php) OR a .shtml page that you can create. It can be displayed in a .shtml page (using a server side include command in the table) by calling a template that is made in html (for format of layout) I would like to know "HOW" I can get it to post inside of my root index.php so I don't have to use .shtml
ANY help would be great, if you need more info please let me know
Coll
ANY help would be great, if you need more info please let me know
Coll
I have not looked at that script, but you are saying that you can run rss2html.php and get the output that you want, but you want that output inside your own index page instead? You mention that your home page is already named index.php, so it's already a PHP script or at least ready to add script. Just try adding the entire rss2html script in your index.php page where you want the output. This is kind of a messy way to handle it, but will either work or help you start to see how to put it together.
So something like this:
[PHP]
<html>
<body>
This is my index.php page. It's full of lots of great content.
Here is where I want the rss feed to show.
<?php
#INSERT rss2html.php code here
?>
This is the rest of my index.php page.
</body>
</html>
[/PHP]
Let us know how it goes.
So something like this:
[PHP]
<html>
<body>
This is my index.php page. It's full of lots of great content.
Here is where I want the rss feed to show.
<?php
#INSERT rss2html.php code here
?>
This is the rest of my index.php page.
</body>
</html>
[/PHP]
Let us know how it goes.
![]() |
Similar Threads
- Trying to set up mirror service for web site. (PHP)
- how to send sms from web site to mobile (PHP)
- create html file from rss feed (PHP)
- RSS feed doesn't validate but why? (RSS, Web Services and SOAP)
- RSS Feed (Web Browsers)
Other Threads in the PHP Forum
- Previous Thread: Online HTML Editor
- Next Thread: Another mysql_num_rows(): error
| Thread Tools | Search this Thread |
# address apache api array autoincrement beginner binary broken cakephp checkbox class clean cms code countingeverycharactersfromastring crack cron curl database date decode dehasher directory display dissertation dynamic echo email error fairness file files folder form forms function functions google href htaccess html image include incode insert ip javascript joomla legislation limit link login mail masterthesis match menu method mlm multiple mysql newsletters oop pagerank paypal pdf persist php play protocol query question radio random remote root script search server sessions simple sms soap source space spam sql support! syntax system table tutorial update upload url validator variable video web youtube





