To get escape chars working in my php code I use: header('Content-Type: text/plain'); but this is causing my html code to be displayed as plain text in my browser. How can I change the Content-Type back to text/html Tried switching the Content-Type from within my php code and from within the HTML code that follows it.
<?php
      header('Content-Type: text/plain');
      echo 'Date Now:' . "\t" . date('m-d-Y') . "\n"; 
      header('Content-Type: text/html']);   
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
      <head>
             <title>date.php</title>
      </head>
      <body>
            ......
      </body>
</html>
I expected that the HTML code would be interpreted correctly by the browser but instead it is being displayed as plain text.