X-UA-Compatible not working if serving html as php

Hi,

i have a problem with some cheap web-host.

First thing is that the X-UA-Compatible meta tag is not working and i don’t know why. So i did it in my htaccess.

<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    BrowserMatch MSIE ie
    Header set X-UA-Compatible "IE=Edge,chrome=1"
  </IfModule>
</IfModule>

<IfModule mod_headers.c>
  Header append Vary User-Agent
</IfModule>

But the server does not gzip my html files. So i need to server my html as php:
In htaccess:

AddType x-mapp-php5 .html .htm .shtml .txt

and top of my html:

<?php ob_start("ob_gzhandler");?>

But in the moment i start serving the html as php the X-UA-Compatible does not work anymore.

Also i saw that some people add env=ie to the line:

Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie

If i do that i get a 500 error.
What does env=ie normally do?

Ok, as i said. It does not work for me as meta tag.
And setting it in the htaccess works only in html files.

So i got it working now with setting it in php:

<?php header('X-UA-Compatible: IE=edge,chrome=1'); ?>