You are here: Re: mySpace blog on Homepage « PHP Programming Language « IT news, forums, messages
Re: mySpace blog on Homepage

Posted by dawnerd on 08/10/06 06:42

amiri.arash@gmail.com wrote:
> Hi!
> I want to feed the news section of my band - homepage with the mySpace
> blog of our band (in order to keep redundancy low).
>
> The band homepage is written in PHP.
>
> I wrote an xsl-stylesheet that transforms the blog into my wanted
> design.
>
> Here is the code:
>
> <?
>
> $doc =
> domxml_open_file("http://blog.myspace.com/blog/rss.cfm?friendID=70463944");
> $xsl = domxml_xslt_stylesheet_file("blogMySpace.xsl");
> $params = array();
> $result = $xsl->process($doc,$params,false);
>
> $wholepage = $result->dump_mem();
> print $wholepage;
> ?>
>
>
> I cant get rid of "&nbsp;" being displayed from the <description> tag.
>
> Anybody knows how to get rid of them?
>
> str_replace('&nbsp;',' ') doesnt work.
> a translate function in the xsl does not work as well....
>
> anybody got an idea?
>
> please help...

It's probably a problem on MySpace's side. I don't know too much about
xml, so I can't be of too much help.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация