그래서, 예를 들어 index.php와 test.php라는 두 개의 파일을 가지고 있는데, html/text로 변환 된 코드가 아니라 코드를 얻고 싶습니다. test.php의 코드를 index.php에 붙여 넣습니다. 브라우저에서 index.php를 열면 브라우저에서 코드를 볼 수 있습니다. 다시 코드는 html/text로 변환되지 않습니다. 나는 함께 시도 :파일에서 코드를 가져 오는 방법은 무엇입니까?
<?php
$handle=file_get_contents("test.php", "r");
echo $handle;
//returns nothing
var_dump($handle);
//returns string(240) "
print_r($handle);
//returns nothing
는'시도 requiere' 또는'include'을 .. .cheers – Hackerman