2012-11-27 2 views

답변

1

$url = "http://sub.example.com/index.php"; 
$file = file_get_contents($url); 
file_put_contents('index.php', $file); 
include index.php; 

내가 index.php에의 상점에서 이름을 변경 추천 및 확인 PHP 파일을 먼저 해석되지 않는 만들어 주겠다고 것을 포함 당신이 그것을 얻을 때.

이것에 관해서는 아무 것도 안전하지 않습니다.

편집 : 또 다른 옵션,

allow_url_include라는 php.ini의 옵션이 있습니다. /www/public_html/index.php 같은

http://php.net/manual/en/features.remote-files.php

관련 문제