2009-08-07 3 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에 액션 스크립트 링크를 가정 당신은 단지 한 경로 디렉토리가 공개 accessable 한 그대로 http://www.example.org/path/file.xml에 연결하여 동일한 결과를 얻을 수 있습니다.

관련 문제