i know a little php but now i want to learn more. So i start by making a little static website a little dynamic that its easier to maintain. So that i don't need to change 10 html pages if i want to change something in the header.
So i'm trying to set the variable for the xu-a-compatible mode.
This is a variable?:
$xua = header('X-UA-Compatible: IE=edge,chrome=1');
and i set it above the html doctype.
Than i want to print it in the html head:
<?php print $xua; ?>
But the funny thing is that IE react's even if i don't put the print function in the head. Why is that? I mean the first line is just a variable and should not be seen by the browser???
Oh wait. The header is something the server sends. So there is no need to prind it in the html head. I was thinking the metatag way. So:
<?php header('X-UA-Compatible: IE=edge,chrome=1'); ?>
above the doctype is enough - right?
But i still wonder why is it send if i set it as a variable?