Carp Evolution - RSS into HTML - Any Experiences

Discussion in 'PHP' started by BigShanks, Jan 11, 2009.

  1. #1
    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:confused:
     
    BigShanks, Jan 11, 2009 IP
  2. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #2
    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:
     
    Danltn, Jan 11, 2009 IP
  3. BigShanks

    BigShanks Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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
     
    BigShanks, Jan 11, 2009 IP
  4. changerx

    changerx Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    changerx, Jan 11, 2009 IP
  5. roger123

    roger123 Active Member

    Messages:
    188
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #5
    roger123, Mar 10, 2009 IP