Sorry, I made a mistake.
PHP Code:
rand(0,sizeof($myfeeds)-1)
should be actually
PHP Code:
$myfeeds[rand(0,sizeof($myfeeds)-1)]
The include line like that
PHP Code:
include 'URL OF RSS2HTML FILE?XMLFILE='.$XMLfilename.'&TEMPLATE=URL OF TEMPLATE/sample-template.html&MAXITEMS=20';
may not work on all servers.
I tested on my server. I left the rss2html.php as it was. And in index.php I put:
PHP Code:
<?PHP
$myfeeds[]='myfeedurl1';
$myfeeds[]='myfeedurl2';
$XMLFILE = $myfeeds[rand(0,sizeof($myfeeds)-1)];
$TEMPLATE = "sample-template.html";
$MAXITEMS = "20";
include("rss2html.php");
?>
And it worked. (My index.php is in the same directory as the rss2html.php.)