I am in need of some help with PHP programming.
I want to find a solution for the following task.
Basic: I use *.php files for my website
Goal: On my website I want to include RSS Feed(s)
Specs:
1) I want to use a PHP command such as include or readfile, which I use in my various PHP webpages
2) I want to select the RSS feed that will be output on the webpage(s) randomly from a list
I want to use the following scripts and your task would be to add the missing PHP code so that it works as intended.
A) Random Selection of the RSS Feed
List of RSS Feeds = [login to view URL]
Random Selection of one feed by a small script located in file = [login to view URL]
B) Output of randomly selected RSS Feed on my web page(s)
To do that I use the following files
[login to view URL] ( = script for output of a RSS Feed)
[login to view URL] ( = formatting of output of the RSS Feed)
[login to view URL] ( = that is the actual output page of the RSS Feed which I want to replace in a way that it is just a piece of PHP code that I need to implement in my web pages
for example such as
<?php
readfile ($_SERVER["DOCUMENT_ROOT"] . "/[login to view URL]");
?>
)
My website is located on a shared server and on my desktop I work with XAMPP under Windows Vista.
Shared server path = public_html
Xampp = g:\xampp\htdocs\work\
I am sure you can solve the problem with handing over Variables etc.
Thanks for helping me out.