Welcome to WebmasterWorld Guest from 54.211.79.150

Forum Moderators: bill & werty

Message Too Old, No Replies

Php xml reader code

Image problem

     
8:54 am on Mar 13, 2008 (gmt 0)

New User

10+ Year Member

joined:May 30, 2005
posts: 26
votes: 0


Dear Friends

I trying to read with several php reader code to following address which it shows all texts but does not show image files.

Could you please offer me which php reader I can use ?

Address ;

<snip>

Thanks alot your kind helps.

Best Regards
armator

[edited by: bill at 9:19 am (utc) on Mar. 13, 2008]
[edit reason] Sorry, no example URLs allowed. [/edit]

9:24 am on Mar 13, 2008 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14962
votes: 125


Have you tried validating the feed?

[validator.w3.org...]

9:54 am on Mar 13, 2008 (gmt 0)

New User

10+ Year Member

joined:May 30, 2005
posts: 26
votes: 0


Yes I tried
11:44 am on Mar 13, 2008 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14962
votes: 125


Does it validate?
2:15 pm on Mar 14, 2008 (gmt 0)

New User

10+ Year Member

joined:May 30, 2005
posts:26
votes: 0


Yes it is validate
4:30 pm on Mar 14, 2008 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14962
votes: 125


OK, then perhaps you could explain your problem a bit more?
12:18 pm on Mar 15, 2008 (gmt 0)

New User

10+ Year Member

joined:May 30, 2005
posts:26
votes: 0


Dear bill

Thanks your kind interest.

You kindly find the sample of xml file as below .

code
-----
<?xml version="1.0" encoding="ISO-8859-9" ?>

<rss version="2.0"><channel><title>example.com</title>
<link>http://www.example.com</link>
<description>news</description>
<image><title>example.com</title>
<link>example.com</link>
<url>http://www.example.com/images/rsslogo.gif</url>
<width>95</width><height>31</height>
<description>news</description></image>

<item>
<title><![CDATA["breaking news"]]></title>
<link><![CDATA[http://www.example.com/news.aspx?id=432827&cat_id=1]]></link>
<description><![CDATA[text text text..]]>
</description>
<pubDate><![CDATA[15.03.2008 14:04:00]]></pubDate>
<img><![CDATA[http://www.example.com/images/blabla/blabla.jpg]]></img>
</item>

</channel></rss>
-----

Thanks advance your kind helps.

My best wishes
armator

[edited by: bill at 1:55 pm (utc) on Mar. 15, 2008]
[edit reason] please use example.com for code samples [/edit]

2:07 pm on Mar 15, 2008 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14962
votes: 125


I don't see in the RSS 2.0 spec [cyber.law.harvard.edu] where you can have an <img> tag in the <item>. That would not validate.
7:28 pm on Mar 15, 2008 (gmt 0)

New User

10+ Year Member

joined:May 30, 2005
posts:26
votes: 0


Dear Bill

As I understand you say this xml file is not validate . Is not it ?

5:16 am on Mar 16, 2008 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14962
votes: 125


This RSS file does not validate.
8:42 am on Mar 16, 2008 (gmt 0)

New User

10+ Year Member

joined:May 30, 2005
posts:26
votes: 0


Dear Bill

Thanks alot.

I am generaly using lastrss.php and is it possible to add any command
in this php code for parse above xml code ?

6:13 am on Mar 18, 2008 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14962
votes: 125


It would probably help if you had a validating RSS feed to work with. Try a known valid feed like the one from this forum:
[webmasterworld.com...]

lastrss.php
I'm not familiar with that package. The author does appear to have contact information on the product's website.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members