If you need to add a <meta>
only for IE,This can use without creating a php file.
Try this code insted of your php code.
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<![endif]-->
3
solved How to add specific PHP code in HTML?