How to insert this code into WordPress?

Discussion in 'HTML & Website Design' started by stanley123, Dec 9, 2009.

  1. #1
    Help! How can I integrate the .php script below into WordPress's content or page?

    <?php
    $olderror_reporting =error_reporting(0);
    include ("http://rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Fnews.search.yahoo.com%2Fnews%2Frss%3Fp%3DCRAFTS%26ei%3DUTF-8%26fl%3D0%26x%3Dwrt%2Chttp%3A%2F%2Fnews.google.com%2Fnews%3Fq%3DCRAFTS%26output%3Drss%2Chttp%3A%2F%2Fwww.bing.com%2Fnews%2Fresults.aspx%3Fformat%3Drss%26FORM%3DRSNR%26q%3DCRAFTS&newpage=1&chead=1&atl=1&desc=1&owncss=&eleminate=&auth=1&dts=1&width=300&max=5&tlen=0&rnd=1&bt=3&bs=Double&nmb=&ntb=&naf=&nst=&nwd=0&nht=0&dlen=0&lstyle=-1&lc=Blue&bg=White&bc=Gray&spc=&ims=&tc=&ts=11&tfont=Verdana,+Arial,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
    error_reporting($olderror_reporting);
    ?>


    If I have to change the .htaccess, what should I add in the file, and where? I've tried using plugin such as exec-PHP, but it doesn't work...
     
    stanley123, Dec 9, 2009 IP
  2. jason12390

    jason12390 Peon

    Messages:
    135
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Where in the page are you trying to add it? does it need to go on every page?
     
    jason12390, Dec 9, 2009 IP
  3. 4chp

    4chp Peon

    Messages:
    163
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It should come out as intended if you have exec-PHP activated ( that is if the code is written properly).

    Turn off the WYSIWYG editor and add it in.

    EDIT: Just tried the code on my test site and nothing showed an quick Google search shows your not the only one running around trying to implement this code.
     
    Last edited: Dec 9, 2009
    4chp, Dec 9, 2009 IP