Announcement

Collapse
No announcement yet.

How to Add PHP RSS Feeds to Your Web Page.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Add PHP RSS Feeds to Your Web Page.

    Hello, i am trying to add a news feed to one of my web pages and i can't get it to work. I followed the instructions from the feed reader provider to a T, but to no avail. Could someone please help me with this!

    Here is the url for the install instructions: http://rssfeedreader.com/php.html#HTML

    and below is the php code that was given to me by the RSS reader:

    <?php
    $olderror_reporting =error_reporting(0);
    include ("http://www.rssfeedreader.com/rss3/rss.php?url=http%3A%2F%
    2Fnews.google.com%2Fnews%3Fhl%3Den%26ned%3Dus%26ie %3DUTF-%26output%
    3Drss%26q%3Dpoker%2Chttp%3A%2F%2Fnews.search.yahoo .com%2Fusns%
    2Fynsearch%2Fcategories%2Fnews_story_search_rss%2F index.html%3Fp%
    3Dpoker%2Chttp%3A%2F%2Fsearch.msn.com%2Fnews%2Fres ults.aspx%3Fformat%
    3Drss%26FORM%3DRSNR%26q%
    3DPOKER&newpage=1&chead=1&atl=1&desc=1&owncss=&ele minate=&auth=&dts=&w
    idth=575&max=20&tlen=0&rnd=1&bt=3&bs=None&nmb=&ntb =&naf=&nst=&nwd=600&
    nht=0&dlen=0&lstyle=1&lc=%23FF0000&bg=%23000000&bc =%
    23000000&spc=&ims=1&tc=%
    2366FFCC&ts=11&tfont=Tahoma,+Verdana&rf=".$HTTP_SE RVER_VARS
    ['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
    error_reporting($olderror_reporting);
    ?>

  • #2
    Re: How to Add PHP RSS Feeds to Your Web Page.

    Hi, regarding my problem with my php rss news feed, i found some information about cron commands for apache servers. Is anyone familiar with cron commands? Below is a list of 10 different cron commands that might execute php scripts on Voda server.
    1) Where would i install these scripts? (HTML box on the page i want the news feed)
    2)I'm not sure, but doesn't it appear that portions of the scripts below are missing? ( < > )

    Apache Server Cron Commands
    These are 10 cron commands that we know of that can be used on Apache
    servers. if none of the commands below work then we suggest
    contacting your host support and asking them for the correct cron
    command that wil execute php scripts on their server.

    If that fails your other options are to use our free bonus tool
    EZcron
    http://visualcron.com (A desktop cron solution)
    http://webbasedcron.com (An outside cron service)


    1. /usr/local/bin/php /home/username/public_html/post/post.php

    2. GET http://www.DOMAIN.com/post/post.php > /dev/null

    3. lynx -dump http://DOMAINNAME.com/post/post.php > /dev/null

    4. curl http://www.DOMAIN.com/post/post.php > /dev/null

    5. php public_html/post/post.php

    6. php -q /home/USERNAME/public_html/post/post.php

    7. cd /home/ USERNAME /public_html/post ; /usr/local/bin/php /home/
    USERNAME /public_html/post/post.php

    8. php -f /home/www/index.php

    9. php -q /home/username/www/RSS2B3/post.php

    10. POST http://www.DOMAIN.com/post/post.php > /dev/null

    Comment


    • #3
      Re: How to Add PHP RSS Feeds to Your Web Page.

      Howdy! My news feed came with two options. Java script or php. I installed the java and it works fine, but the problem is that java isn't search engine friendly. Php can actually improve your search engine ranking, because fresh content is added regularly and search engines will spider it more often. I would still like to install the php rss feed. So if anyone can help, please respond to this thread.

      Many thanks, Theopod. Check out the page! http://www.freerollhaven.com/pkrnews.html

      Comment


      • #4
        Re: How to Add PHP RSS Feeds to Your Web Page.

        Anyone know how to install php?

        Comment


        • #5
          Re: How to Add PHP RSS Feeds to Your Web Page.

          Sorry for keeping this thread active, but i really want solve this problem! The following is the error i keep getting on my web page when i try to install the rssfeeds.php
          [an error occurred while processing this directive]
          I follow the install instructions and try different variations, but it just wont work.
          I saved the php code on notepad and named it rssfeeds.php. I then went into cpanel and opened file manager and uploaded the rssfeeds.php into my public_html folder. I opened apache handlers in cpanel then changed the .htaccess by adding .htm and .html server-parsed. I then added the ssi <!--#include virtual="/rssfeeds.php" --> to an html box on my web page and published the page. "Doesn't work" The instructions below say to save the rssfeeds.php file to my root folder and upload to server. Is my root folder my public_html folder. Maybe this is where i went wrong. How do i save the rssfeeds.php into my root folder and upload to server?

          Add the PHP code that was given to you by the RSS reader in to the blank rssfeeds.php file and save it in your root folder and upload it to your server. There should nothing else in the file except the code that was given to you by the reader.

          Comment


          • #6
            Re: How to Add PHP RSS Feeds to Your Web Page.

            ??

            Comment


            • #7
              Re: How to Add PHP RSS Feeds to Your Web Page.

              You are a *******! Your not being ignored- it's just I think you are the first one to actually incorporate this into a BV website. I know I haven't seen much about php rss feeds.

              Hope you get it figured.

              Andy
              PHP- is a blast!

              Comment


              • #8
                Re: How to Add PHP RSS Feeds to Your Web Page.

                i tried a while back and failed i dont think the servers work with the normal rss feeds i.e news reels etc in php or any other ????? not sure why something to do with it being apache maybe i read in a rss feed provider page if you find out let me know thanks
                The get vasili to join our forum campaign has begun



                www.thatgoodsite.com and our forum of fun also starring my hero vasili
                Weve got movies,arcade,radio,T.V,chat,music,funny vids,jokes and lots and lots of fun for free

                Comment


                • #9
                  Re: How to Add PHP RSS Feeds to Your Web Page.

                  Thanks for responding Andy and Allstar! Thought for sure i was alone in here! lol. The strange thing, Allstar, is that the instructions for install are for an Apache server which BV seems to be. In C-panel there is an apache handler icon you can click on to change your .ht access. An even stranger thing is that i submitted a ticket to customer support and not even they can help me. You'd think that customer support would have some computer super geeks on the payroll full time 24/7 to help "customers" with problems other than how and where to pay for your domain! If the people who sold me the server space can't help me, who can? lol

                  Comment


                  • #10
                    Re: How to Add PHP RSS Feeds to Your Web Page.

                    Theo...

                    Here is a thread with a similar discussion (which was found extremely easy via "Search the Forum") which may offer you some insight : http://www.vodahost.com/vodatalk/add...html#post30145

                    If this doesn't do the trick, the maybe you can search specifically using different key words??
                    The answers are out there, if you look for them!
                    . VodaWebs....Luxury Group
                    * Success Is Potential Realized *

                    Comment


                    • #11
                      Re: How to Add PHP RSS Feeds to Your Web Page.

                      Thanks Vasilli, but i'm not trying to add an audio or video stream? I'm trying to add php script!

                      Comment


                      • #12
                        Re: How to Add PHP RSS Feeds to Your Web Page.



                        And yes Vasilli i have searched the forum and it was extremely easy! lol. I used php as a my keyword, but i couldn't find a solution. I found similar problems, but no solution.

                        Comment


                        • #13
                          Re: How to Add PHP RSS Feeds to Your Web Page.

                          You need to hook up with our resident script Guru's: Naval, Andy128, FRRob, Nyomen, and Whatdaflip......search them out in Member List, shoot them an email. Whatdaflip is semi-pro, so maybe starting there?
                          . VodaWebs....Luxury Group
                          * Success Is Potential Realized *

                          Comment


                          • #14
                            Re: How to Add PHP RSS Feeds to Your Web Page.

                            It should work,
                            check your rssfeed.php. and make sure there are no space in between. make it like this:
                            PHP Code:
                            <?php
                            $olderror_reporting 
                            =error_reporting(0);
                            include 
                            (
                            "http://www.rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Fnews.google.com%2Fnews%3Fhl%3Den%26ned%3Dus%26ie%3DUTF-%26output%3Drss%26q%3Dpoker%2Chttp%3A%2F%2Fnews.search.yahoo.com%2Fusns%2Fynsearch%2Fcategories%2Fnews_story_search_rss%2Findex.html%3Fp%3Dpoker%2Chttp%3A%2F%2Fsearch.msn.com%2Fnews%2Fresults.aspx%3Fformat%3Drss%26FORM%3DRSNR%26q%3DPOKER&newpage=1&chead=1&atl=1&desc=1&owncss=&eleminate=&auth=&dts=&width=575&max=20&tlen=0&rnd=1&bt=3&bs=None&nmb=&ntb=&naf=&nst=&nwd=600&nht=0&dlen=0&lstyle=1&lc=%23FF0000&bg=%23000000&bc=%23000000&spc=&ims=1&tc=%2366FFCC&ts=11&tfont=Tahoma,+Verdana&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
                            error_reporting($olderror_reporting);
                            ?>
                            upload the php.file above to your root directory (public_html).
                            in control panel 'Apache Handler' make sure you add .htm server-parsed and .html server-parsed
                            and then you call your newsfeed through your page by adding <!--#include virtual="/rssfeeds.php" --> in html box and place it wherever you want.

                            Try!!!!!

                            Vasili_ I am not a Guru , you are so funny
                            .
                            .
                            Nyoman

                            Comment


                            • #15
                              Re: How to Add PHP RSS Feeds to Your Web Page.

                              Hi Nyoman, sorry for taking so long to respond. I did everything you asked. I copied and pasted the php code you gave me in notepad and named it rssfeeds.php. I then uploaded the file to my public_html folder. I added the .htm and .html server-parsed I added the html box (<!--#include virtual="/rssfeeds.php" -->) on the page i wanted it to display and published. Still getting the error below.
                              [an error occurred while processing this directive]

                              Comment

                              Working...
                              X