How to give php page as your code?

How can 111.html page (i.e. any) be rendered using php as if it were the code of the php page itself, i.e. not a redirect?


Answer 1, authority 100%

There is such a useful directive include. You can read here.

<?php
include("111.html");
....
?>

Answer 2, authority 75%

echo file_get_contents(‘path_to_file’);


Answer 3, authority 50%

Well, one more option:

<?php
    readfile("111.html");
?>

This is how you can force downloads of files: https://ru.stackoverflow.com/questions/20973/pdf-download