So I customized the RSS feed example from this site: http://www.w3schools.com/php/php_ajax_rss_reader.asp and put together a little RSS feed news box that I want to be able to run from other peoples websites. I basically want to give them snippet of html code and have all the assets and files pull from my server (the script requires PHP 5 to run).
The real action happens between getrss.js and getrss.php. I've attached the entire directory here. All files are pointing to the local directory they're in. if you're running PHP5, rss.html should show you the feed.
But...when I make the paths absolute to my live php5 enabled server, (ie: move the html file out of the root directory), the feed doesn't load. My fear is that I need to put ALL of these files on the server that I want to run the html page on, which defeats the purpose of what I'm trying to do. I want to be able to give webmasters a simple JS or HTML file. No server side code needed.
I need someone who understands PHP better to look at this closer. Any advice would be awesome! Thanks!
Regards,
Matt