Kyle Posted January 16, 2006 Posted January 16, 2006 I am new to RSS and have created a XML/RSS file with notepad. It al works well and when i update my 'latest news page onthe web site and add the relevant info to the xml file all works well. I may bea bit naive here but, is ther a easier way? Is there naythingthat can tell that you have updated your webpage/html file and that it updates the xml file. I am new to this and to being a technician so any help would be great.
russdev Posted January 16, 2006 Posted January 16, 2006 Hello Kyle what do you use to do website as maybe something coded into that if not then we can look to see would create a dynamic rss feed. russ
tosca925 Posted January 16, 2006 Posted January 16, 2006 I use Dreamweaver 2004 to do my website is there any tips on RSS with this?
Kyle Posted January 16, 2006 Author Posted January 16, 2006 I also use Dreamweaver as well, i have only played with my own RSS created in notepad..........was wondeing if their was somthing less manually time cosuming.
russdev Posted January 16, 2006 Posted January 16, 2006 have look here http://www.webreference.com/programming/rss_feeds/ Russ
browolf Posted January 17, 2006 Posted January 17, 2006 on a website i once had I made a sheduled php script that (re)created an rss feed from a database. i'm not sure i have the code for it. will have a look at home.
browolf Posted January 18, 2006 Posted January 18, 2006 $dbc = mysql_connect("localhost", "antiphishing_org_uk", "9a9ca65a") or die ('could not connect:'. Mysql_error()); mysql_select_db("antiphishing_org_uk_1"); $file="news.xml"; $jsfile="news.js"; //ftruncate($file,0); $fp = fopen ($file, "w") or die("can't open/create file"); $fjs = fopen ($jsfile, "w") or die ("can't open/create js file"); //write rss file header if (!fwrite($fp,"\n")) {echo ("cant write"); } fwrite($fp,"\n"); fwrite($fp,"\n");\ fwrite($fp,"Antiphishing Crusade\n"); fwrite($fp,"http://www.antiphishing.org.uk\n"); fwrite($fp,"\nKeeping tabs on those trying to defraud us\n\n"); fwrite($fp,"en-us\n"); fwrite($fp,"[email protected]\n"); //write js file header fwrite($fjs,"document.write(\"\");\n"); if (!fwrite($fjs, "document.write(\"[url='http://www.antiphishing.org.uk/'][b]Antiphishing Crusade[/b][/url] Latest Phishing News \");\n")) {echo ("cant write js"); } $query= "SELECT address,title,quote,DATE_FORMAT(adddate,'%e %M') FROM news ORDER BY adddate desc LIMIT 10"; $result=@mysql_query($query); if ($result){ while ($row = mysql_fetch_array($result,MYSQL_NUM)) { //write rss feed $row1 = htmlspecialchars($row[1]); $row2 = htmlspecialchars($row[2]); $row0 = htmlspecialchars($row[0]); fwrite($fp,"\n"); fwrite($fp,"$row[3] $row1\n"); fwrite($fp,"$row0\n"); fwrite($fp,"$row2\n"); fwrite($fp,"\n"); //write js feed fwrite($fjs,"document.write(\"$row[3] [url='$row[0]'][i]$row[1][/i][/url] \");\n"); } mysql_free_result($result); } fwrite($fp,"\n"); fwrite($fp,"\n"); fwrite($fjs,"document.write(\"\");"); fclose($fp); fclose($fjs); ?>
kingswood Posted January 18, 2006 Posted January 18, 2006 On a related topic I have been playing with Apple's iWeb (part of the new iLife '06 suite) and am loving it. It's not as functional as other blogging platforms or web design tools. but it is very easy and allows for easy RSS integration and update notification. I seem to remember the Visual Basic 2005 Express Edition coming with an add-on pack that takes you through the process of writing an RSS application that you can add to etc. Might be worth checking that out on the MS site? http://msdn.microsoft.com/vstudio/express/vb/features/xml/default.aspx HTH (even a little) Paul
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now