etrader Posted February 9, 2011 Share Posted February 9, 2011 I want to create a xml-based rss which is readable by RSS readers <?xml version="1.0"?> <rss version="2.0"> <channel> <title>Title</title> <link>http://link.com/</link> How I can write php strings from a php file into it as <item> <title><? echo $title ?></title> <link><? echo $link ?></link> <description><? echo $description ?></description> <pubDate><? echo $date ?></pubDate> <guid><? echo $id?></guid> </item> Link to comment https://forums.phpfreaks.com/topic/227145-how-to-write-php-into-xml-rss/ Share on other sites More sharing options...
anups Posted February 9, 2011 Share Posted February 9, 2011 Simply use library written at http://www.phpclasses.org/package/2957-PHP-Generate-RSS-2-0-feeds.html It will simplify your life and save lots of time Link to comment https://forums.phpfreaks.com/topic/227145-how-to-write-php-into-xml-rss/#findComment-1171739 Share on other sites More sharing options...
etrader Posted February 9, 2011 Author Share Posted February 9, 2011 Thanks! It helped a lot Link to comment https://forums.phpfreaks.com/topic/227145-how-to-write-php-into-xml-rss/#findComment-1171791 Share on other sites More sharing options...
Jessica Posted February 9, 2011 Share Posted February 9, 2011 Thanks! It helped a lot Yay! Don't forget to mark as solved! Link to comment https://forums.phpfreaks.com/topic/227145-how-to-write-php-into-xml-rss/#findComment-1171792 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.