PDA

View Full Version : RSS and ASCII code


indira
09-25-2006, 07:43 PM
Hi there,
I am checking the RSS format, and find that in line 808 where I have the RSS Feed it uses symbols such as:
<img src="$image">
<br />$body
instead of just writing <img scr="whatever.jpg"
etc etc
Now, I'm using another PHP to convert this feed to another, and make a temporal feed. But this temporal has a source code with these characters instead of the HTML.
Can I put the html code into the index.php and how could I do that without ruining the whole thing? something like inserting \ or whatever as in javascript? thanks!
Indira

Connie
09-25-2006, 08:08 PM
As I worked really hard to have the feeds valid and compliant, I would not recommend to do these editings...

I saw David Thomas in your playlist...
I also like David Thomas.. he played at my place some years ago, have a look here, I met him last year again:

http://www.photografitti.de/index.php?showimage=226

indira
09-25-2006, 10:46 PM
Hey, so good to see you like David Thomas too! He's so d*mn avant gard and agressive! I would love to see him, but here in Argentina we don't get so much international music unless it's commercial :(
About the rss, this is what my other php does: it reads the index.php?rss file and re writes it at a temporal xml called "rssify.xml". This is to overcome the crossbrowser issue that flash has with reading data. There are other ways but they didn't work. The thing is that the output is fine unless you see the source code" of the rssify.xml, there, you can find the real code
&lt;img src=
and flash cannot decode that. This is the php code for the "translator":

<?
$file = $_POST['RSSfile'];

$fr = fopen($file, "r");
$contents = fread ($fr, 1000000);
fclose($fr);

$fp = fopen("rssify.xml", "w");
fputs($fp, $contents);
fclose($fp);

// get string to Flash
print "&result=Okay&the_file=$file";

?>

anything I could do about it for it to change the " &lt;" signs and all to real code?
Thank you very much!
Indira

indira
09-26-2006, 12:50 AM
I did it, not the way I wanted it, but it still works anyway.
I placed the flash reader together with pixelpost blog and I call it from another swf at the other site. I don't want to touch the rss that's working more than fine.
I am working at making a flash template, with no results up to now :)
thanks!
Indira

Connie
09-26-2006, 06:21 AM
so many technologies used to get nice results..

I always try to keep the ball down.. (german proverb) and with Flash, I cannot help you, I never went into it really

I whish you success with your experiments !