Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > BlueVoda Website Builder Forums > Adding Elements To Your Website

Notices

Adding Elements To Your Website Discussions, help & troubleshooting about adding templates, backgrounds, images, text, iframes, scroll bars, marquees, flash, video, music, HTML Code, shapes, lines, java scripts, and all other elements. Etc… etc…

Reply
 
LinkBack Thread Tools
  #1  
Old 07-18-2006, 05:24 PM
First Sergeant
 
Join Date: Mar 2006
Posts: 76
Default 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);
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 07-19-2006, 04:56 PM
First Sergeant
 
Join Date: Mar 2006
Posts: 76
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 07-21-2006, 03:16 AM
First Sergeant
 
Join Date: Mar 2006
Posts: 76
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 08-15-2006, 05:33 PM
First Sergeant
 
Join Date: Mar 2006
Posts: 76
Default Re: How to Add PHP RSS Feeds to Your Web Page.

Anyone know how to install php?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 08-16-2006, 05:41 AM
First Sergeant
 
Join Date: Mar 2006
Posts: 76
Default 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 08-19-2006, 03:39 PM
First Sergeant
 
Join Date: Mar 2006
Posts: 76
Default Re: How to Add PHP RSS Feeds to Your Web Page.

??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 08-19-2006, 04:22 PM
Andy128's Avatar
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,275
Default 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
__________________
My diamond in the rough - www.123gpp.com

* Click here for some BV tutorials (Php mailto Form, I-Frames, Picture display and much, much more!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 08-19-2006, 04:36 PM
allstarfaces's Avatar
Brigadier General
 
Join Date: Apr 2006
Location: manchester england
Posts: 1,706
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 08-19-2006, 10:18 PM
First Sergeant
 
Join Date: Mar 2006
Posts: 76
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 08-19-2006, 10:55 PM
Vasili's Avatar
Generalissimo
 
Join Date: Mar 2006
Posts: 8,620
Arrow 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!
__________________
_____________________________________________________ .*.* . .* . * . * .*
My Websites... VodaHost Support....Soholaunch Support....osCommerce Support
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 08-19-2006, 11:03 PM
First Sergeant
 
Join Date: Mar 2006
Posts: 76
Default 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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 08-19-2006, 11:11 PM
First Sergeant
 
Join Date: Mar 2006
Posts: 76
Default 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old 08-19-2006, 11:54 PM
Vasili's Avatar
Generalissimo
 
Join Date: Mar 2006
Posts: 8,620
Default 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?
__________________
_____________________________________________________ .*.* . .* . * . * .*
My Websites... VodaHost Support....Soholaunch Support....osCommerce Support
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old 08-20-2006, 02:26 PM
Major
 
Join Date: Sep 2005
Location: heavenly-temple
Posts: 430
Send a message via Yahoo to Nyoman
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old 08-20-2006, 08:52 PM
First Sergeant
 
Join Date: Mar 2006
Posts: 76
Default 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]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old 08-22-2006, 02:10 AM
Major
 
Join Date: Sep 2005
Location: heavenly-temple
Posts: 430
Send a message via Yahoo to Nyoman
Default Re: How to Add PHP RSS Feeds to Your Web Page.

I tried in my page with the same code as above and it is working. Maybe you did something wrong. Did you edit your.htaccess by chance? if you add extension handler in control panel you don't need to edit your .htaccess.
still getting Error?
try to put (<!--#include virtual="/rssfeeds.php" -->) in new blank page. and if this is working means you have conflic code in your previous page
__________________
.
.
Nyoman
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old 08-22-2006, 03:11 PM
First Sergeant
 
Join Date: Mar 2006
Posts: 76
Default Re: How to Add PHP RSS Feeds to Your Web Page.

Hi Nyoman, I tried on a new page with the same result. I don't know what the hell is going on. I edited my .htaccess with .htm and .html server-parsed. I uploaded the rssfeeds.php to my public_html and put the (<!--#include virtual="/rssfeeds.php" -->) into a html box on the new page.
1) When you say "if you add extension handler in control panel you don't need to edit your .htaccess." What do you mean and how do i do that?

2) When i upload the rssfeeds.php file into the public_html folder it is saved as rssfeeds.php.txt. Is this normal?
Digg this Post!Add Post to del.icio.us