That's not a PHP issue, it's a matter of configuring your Web server. See your Web server manual. With Apache it's quite simple.
However, if what you really want to do is send text instead of HTML, just begin your PHP file with
header("Content-type: text/plain");