Hi Guys I am simple html dreamweaver user who before buying Crap Evoltuion hadnt any experince using PHP let alone PHP scripts. I have followed all the stuff Antone Rundy has suggested and cant get it to display the newsfeed in an html doc. I know how PHP works on the server etc in basic terms but havent got any knowledge of scripts I was just surfing round the forums and though whilst I was here I may aswell ask if anyone has had any experinece or know sanything about it. Obviously I will post back to his site but just took the chance to ask for help whilst I was here If any of you dont know what it is, its basically a php script that converts rss & atom feeds into html on your page. Obviously this is extremely spider friendly and I wanted to put on a new SEO service we are launching to test it out. Any help is greatly appreciated! Cheers
Perhaps something like http://feedednews.com would be good for you? Either way here is a quick demo of how to display XML feeds on your page. <?php $url = 'http://forums.digitalpoint.com/external.php?type=RSS2&forumids=37'; $page = new SimpleXMLElement( $url, 0, true ); foreach ( $page->channel->item as $item ) { extract( array_map('strip_tags', (array )$item) ); /* Strip_tags to be safer. */ echo '<a href="', $link, '">', $title, '</a>', PHP_EOL, '<p>', $description, '</p>', PHP_EOL; } PHP:
Hi Danltn thanks for the response! I have implemented the following code that they tell me too with the setup file <?php require_once '/home/searchen/public_html/carp/carp.php'; // Add any desired configuration settings before CarpCacheShow // using "CarpConf" and other functions CarpCacheShow('http://www.geckotribe.com/press/rss/pr.rss'); ?> They then say that you need to create a .htacess file on the root, which I have done but every time I upload it again it prevents any internal pages from loading. The homepage loads but nothing else - I have only amended and added the code to the seo blog page too ! which completely bamboozles me. The feed is from search engine watch and their setup fiel creates the above code to input. Any advice??? Please?? each time I click an internal link it brings up a windows save or choose app to open ??? thanks in advance
Maybe you should use SimplePie? Lots of documentation and examples. It's open source and free! I built several sites using it. Bagain Scent - Nose for bargains Chinese Movies DVD - chinese movie reviews
There are two ways to make your script work. First way - change the filename extensiion from .html to .php Second way - Modify .htaccess file on your server to allow execution of PHP code in ".html" files Your hosting company has to support that functionality You can get detailed information in this document http://carp.docs.geckotribe.com/tips/2005/06/displaying-feeds-in-non-php-pages.php