I made this file that generates feeds with JavaScript and PHP, simular to what W3Reports uses.
The file is called feed.php for now and when I view it I see this:
Code:
document.write('<a target="_blank" href="http://localhost/tutorial/7/a-design-tutorial/">A design tutorial :)</a><br />');
document.write('<a target="_blank" href="http://localhost/tutorial/6/a-design-tutorial/">A design tutorial :)</a><br />');
document.write('<a target="_blank" href="http://localhost/tutorial/5/some-tutorial-that-teaches-you-the-basics-of-php/">Some tutorial that teaches you the basics of PHP</a><br />');
document.write('<a target="_blank" href="http://localhost/tutorial/4/Tutorial test yada-yada/">Tutorial test yada-yada</a><br />');
document.write('<a target="_blank" href="http://localhost/tutorial/3/3-column-layout-with-divs/">3 Column layout with divs</a><br />');
document.write("<br />Tutorials by <a href="http://www.xamer.net" title="Visit Xamer">Xamer</a>");
Which is good.
Now to include it on a page I'll have to use code like this:
Code:
<script src="http://localhost/feed.php" type="text/javascript"></script>
Nothing's showing up on my page though, does anyone know why this is happening?