Jump to content

[SOLVED] php generated xml problems


zipp

Recommended Posts

I wrote a script to generate the xml in this format:

 

<rss>

  <channel>

      <title></title>

      <link></link>

      <description></description>

      <pubDate></pubDate>

      <item>

        <title></title>

        <link></link>

        <description></description>

        <pubDate></pubDate>

      </item>

      <item>

        <title></title>

        <link></link>

        <description></description>

        <pubDate></pubDate>

      </item>

      ...

  </channel>

</rss>

 

There is roughly 50 items total. However, only the first 4 show up when the file is accessed in firefox, and Windows Live Mail says it is not a proper rss feed (my guess is because it is running on localhost). When you view the source of the xml file, all the items are there.

 

Does anyone have any ideas?

Link to comment
https://forums.phpfreaks.com/topic/177392-solved-php-generated-xml-problems/
Share on other sites

**edit**

I think I figured it out. I'm pretty sure the script was just timing out when displaying (to many items maybe). I'll limit it to something like 20 or so, just to keep it small.

 

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
	<title>**</title>
	<link>**</link>
	<description>**</description>
	<language>en-us</language>
	<pubDate>2009-10-12 07:57:54</pubDate>
	<lastBuildDate>2009-10-12 07:57:54</lastBuildDate>
	<item>
		<title>**</title>
		<author>**</author>
		<link>**</link>
		<description>**</description>
		<pubDate>**</pubDate>
	</item>
	<item>
		<title>**</title>
		<author>**</author>
		<link>**1</link>
		<description>**</description>
		<pubDate>**</pubDate>
	</item>
	(...this continues for 50+ items...)
</channel>
</rss>

 

title: plaintext

author: plaintext

link: url, plaintext (no html)

description: html (ex:  check out this link: <a href="http://www.somesite.com">somesite.com</a>)

pubDate: 2009-10-12 07:57:54

 

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.