Ok I see where I was going wrong... never used XAMPP before, ok after moving the directory to XAMPPS "htdocs" directory and typing "http://127.0.0.1/Website/demo.htm" manually in my browser, then updating the links, the message has changed.
Now it returns: "This domain isn't authorized to show scroller.
I give up trying to fetch RSS feed."
*.htm
Code:
<script type="text/javascript">
new rsspausescroller("cnn", "pscroller2", "rssclass", 3000, "_new", "date+description")
</script>
rsspausescroller.js
Code:
//URL to "scrollerbridge.php" on your server (use absolute path for syndication):
var bridgepath="//URL to "scrollerbridge.php" on your server (use absolute path for syndication):
var bridgepath="http://127.0.0.1/Website/lastrss/scrollerbridge.php"
scrollerbridge.php
Code:
// include lastRSS
include "lastRSS.php"; //path to lastRSS.php on your server relative to scrollerbridge.php
// Create lastRSS object
$rss = new lastRSS;
$rss->cache_dir = 'cache'; //path to cache directory on your server relative to scrollerbridge.php. Chmod 777!
$rss->date_format = 'M d, Y g:i:s A'; //date format of RSS item. See PHP date() function for possible input.
$rss->cache_time = 1800; //Global cache time before fetching RSS feed again, in seconds.
// Define your list of RSS URLs- "RSS_id"=> "URL to RSS feed"
$rsslist=array(
"cnn" => "http://rss.cnn.com/rss/cnn_topstories.rss",
"dynamicdrive" => "http://www.dynamicdrive.com/export.php?type=new",
"falingehub" => "http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=falingehub",
);
//Domains that are authorized to display scroller:
//Seperate multiple domains each with a comma (",")
//For example: $allowedDomains="dynamicdrive.com, javascriptkit.com"
//OR enter a blank string to allow any domain (ie: for RSS feed syndication):
$allowedDomains="cnn.com, dynamicdrive.com, twitter.com";
////Beginners don't need to configure past here///
Have I entered the domains correctly? Perhaps there is a setting in XAMPP preventing it from functioning fully if the code here is good? Anyone able to help?
Bookmarks