Setting up a RSS reader with PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Smoovasbird
    New Member
    • Dec 2006
    • 2

    #1

    Setting up a RSS reader with PHP

    Hi guys
    This is my 1st post on here - love the site and clearly think its a valuable asset!
    Basically - having the worst nightmare of my life and am now at my wits end! I'm trying to insert and RSS reader on my site in PHP . . .can I succeed? in short - nope! After trying for 3 days now Im all but ready to give up. Could anyone out there programme this for me? I'm pretty savvy when it comes to learing new stuff - but this PHP business is driving me crazy and I really want the RSS up and running. Would greatly appreciate any advice offered and definitely credit accordingly! :-)

    Thanks in advance

    Sb
  • b1randon
    Recognized Expert New Member
    • Dec 2006
    • 171

    #2
    Originally posted by Smoovasbird
    Hi guys
    This is my 1st post on here - love the site and clearly think its a valuable asset!
    Basically - having the worst nightmare of my life and am now at my wits end! I'm trying to insert and RSS reader on my site in PHP . . .can I succeed? in short - nope! After trying for 3 days now Im all but ready to give up. Could anyone out there programme this for me? I'm pretty savvy when it comes to learing new stuff - but this PHP business is driving me crazy and I really want the RSS up and running. Would greatly appreciate any advice offered and definitely credit accordingly! :-)

    Thanks in advance

    Sb
    Sb, No way! Try it yourself and I'm glad to help but I'm not in the business of doing other peoples programming for them unless they pay my salary.

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      As b1randon already told you: this is a site for programmers helping other programmer with problems, difficulties getting their scripts working, coding questions, etc.

      This is not a code factory nor an on-demand programming centre. If you have made yourself an RSS feed script, and that doesn't work for some reason: fine. We will all we can do to help and assist.

      I'll give you one tip: try some googling around.

      moderator :cool:

      Comment

      • Smoovasbird
        New Member
        • Dec 2006
        • 2

        #4
        Hi Thanks!
        Appologies if I offended . . didnt mean to! :-) I know these forums are here to help which I appreciate! :-) O.k. here's the deal.

        I'm trying to put a live RSS feed on my site and have the code to do so. It is:
        [php]<?php
        $olderror_repor ting =error_reportin g(0);
        include ("http://www.rssfeedread er.com/rss3/rss.php?url=htt p%3A%2F%2Fnews. google.com%2Fne ws%3Fhl%3Den%26 ned%3Dus%26ie%3 DUTF-%26output%3Drss %26q%3Dpoker%2C http%3A%2F%2Fne ws.search.yahoo .com%2Fusns%2Fy nsearch%2Fcateg ories%2Fnews_st ory_search_rss% 2Findex.html%3F p%3Dpoker%2Chtt p%3A%2F%2Fsearc h.msn.com%2Fnew s%2Fresults.asp x%3Fformat%3Drs s%26FORM%3DRSNR %26q%3Dpoker&ne wpage=1&chead=1 &atl=1&desc=1&o wncss=&eleminat e=&auth=1&dts=1 &width=600&max= 7&tlen=0&rnd=&b t=1.5&bs=Groove &nmb=&ntb=&naf= &nst=&nwd=0&nht =0&dlen=0&lstyl e=4&lc=%23CC000 0&bg=%23FFFFFF& bc=%23000000&sp c=&ims=&tc=%230 00000&ts=10&tfo nt=Arial,+Helve tica,+Sans-serif&rf=".$HTT P_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_V ARS['PHP_SELF']."&phpout=1" );
        error_reporting ($olderror_repo rting);
        ?> [/php]
        I've changed the file extension in page inspector to: .php
        Now, apparantly I need to do something on my web server??
        The php is currently set to PHP 4 - does this need changing to PHP 5?

        The instructions that came with the script are as follows:

        "For Apache Servers Edit your .htacess with AddType application/x-httpd-php .htm .html Then Add the php code from the reader directly to your html pages

        For Apache Servers Edit your .htacess with either .htm server parsed .html server parsed or
        Addhandler application/x-httpd-php .html .php Then follow the directions below to use the php code from the reader with SSI Includes.For Apache Servers Edit your .htacess with AddType application/x-httpd-php .htm .html Then Add the php code from the reader directly to your html pages

        For Apache Servers Edit your .htacess with either .htm server parsed .html server parsed or
        Addhandler application/x-httpd-php .html .php Then follow the directions below to use the php code from the reader with SSI Includes."

        Which of course means nothing to me!! (I'm a former die hard dot Mac user - this is all a bit over my head right now!)

        I've tried for 3 days to crack this - so any help would seriously be appreciated! Thankyou in advance :-)
        Last edited by ronverdonk; Dec 21 '06, 08:54 PM. Reason: Pur code between PHP tags!!

        Comment

        • ronverdonk
          Recognized Expert Specialist
          • Jul 2006
          • 4259

          #5
          Next time you post please read the Posting Guidelines before you do. You are breaking the boxes with your code display.

          Ronald :cool:

          Comment

          • cassbiz
            New Member
            • Oct 2006
            • 202

            #6
            I just plugged it into one of my pages and it worked fine.

            What version of PHP are you using? I am using 4.2

            Also I took out all of the spaces from your above code and made sure the include statement was on one line.
            Last edited by cassbiz; Dec 22 '06, 03:48 PM. Reason: Code didn't write correctly

            Comment

            • ronverdonk
              Recognized Expert Specialist
              • Jul 2006
              • 4259

              #7
              Are you sure that your server is PHP-enabled? Have you run phpinfo() to verify that?

              Ronald :cool:

              Comment

              • Niheel
                Recognized Expert Moderator Top Contributor
                • Jul 2005
                • 2433

                #8
                the title on this thread read like a title on a personals/dating site (thought it was funny)
                Last edited by Niheel; Dec 22 '06, 05:11 PM.
                niheel @ bytes

                Comment

                • ronverdonk
                  Recognized Expert Specialist
                  • Jul 2006
                  • 4259

                  #9
                  You have a suspicious mind!

                  Ronald :cool:

                  Comment

                  Working...