Displaying the contents of a file

I have 2 files named “test.htm” and displayContents.php like the below, the would-be code below doesn’t work correctly, but I hope it show what I want.

[b]all code in "test.htm"[/b]

This is a test page.

[b]would-be code in "displayContents.php"[/b]


echo $displayContents;

[b]result of "displayContents.php"[/b]

This is a test page.

How can I get the result above when I browse “dispalyContents.php”?

echo file_get_contents('test.htm');