PDA

View Full Version : cross domain issue: blogger rss read & proxy.php


runtime
01-17-2009, 05:00 PM
Does anyone have any insight to the problem I'm having getting my blogger rss (atom) reader to work remotely.

I've recently activated php on my server.
I've followed the instructions on this post:
http://www.actionscript.org/forums/showthread.php3?t=157398&highlight=proxy.php

Written this PHP:
<?php

$url = $_GET['url'];
readfile($url);

?>

Changed my XML data receiver in AS3 to:
function loadXML():void {

xmlLoader.load(new URLRequest("http://www.mywebsite.com/subfolder/proxy.php?url=http://myblog.blogspot.com/atom.xml"));
}


Please note: This works locally. I see all the posts from my blog in Flash locally. This tells me that my server has php enabled and that the swf is finding the php and passing it through. It just still doesn't work when all items are uploaded.

proxy.php sits in the same folder as the HTML that holds the swf.

It should also be noted the blog reader swf is also being loaded into a main swf (both as3).

Any help on this would be greatly appreciated.

cbismuth
09-28-2009, 09:31 AM
It worked well for me until the last week.
It worked for 6 months and and it doesn't work anymore, I don't know why because I didn't changed my AS3 code ...
I use the same configuration: AS3, Blogger, proxy.php, JSON ... works locally but not when online ...

Does anyone have any idea?
Chris