views:

73

answers:

2

This is called from flash/action script File name: rssProxy.php RSS reader uses PHP any work around on a non PHP server? Script below:

<?php
$rss = $_GET['rss'];
// make sure that some page is really being called
if ($rss && $rss != ""){
    // make sure that an http call is being made - otherwise there's access to any file on machine...
    if ((strpos($rss, "http://") === 0) || (strpos($rss, "https://") === 0)){
     readfile($rss);
    }
}

?>
+1  A: 

Assuming the action script links to http://www.example.org/rssProxy.php?rss=path/file.xml you should get the same result by just linking to http://www.example.org/path/file.xml as long as the path directory is public accessable.

danamlund
A: 

You can parse the RSS directly in flash.

Elzo Valugi