Jump to content

How to write php into xml RSS


etrader

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.