2009-08-07 14 views
0

これはフラッシュ/アクションスクリプトから呼び出されます ファイル名:rssProxy.php RSSリーダーは、PHP以外のサーバーでPHPを使用していますか?以下 スクリプト:RSSリーダーは、PHP以外のサーバー上でPHPを使用していますか?

<?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

編集の理由は何でしたか? – random

+0

あなたのサーバーにはどのようなスクリプトがありますか? – EFraim

答えて

1

http://www.example.org/rssProxy.php?rss=path/file.xmlにアクションスクリプトのリンクを想定するとあなたは同じように長いパスディレクトリは、パブリックアクセス可能であるようhttp://www.example.org/path/file.xmlにリンクすることにより、同じ結果を得る必要があります。

関連する問題