It is currently Sat Dec 02, 2017 4:13 pm Advanced search
if (stristr($_SERVER["HTTP_USER_AGENT"],"W3C_Validator"))
{
header("Content-type: application/xhtml+xml");
}
valkyr wrote:You can set up rules in your scripting language of choice to send headers specifically for the validator. In PHP for example you could do
- Code: Select all
if (stristr($_SERVER["HTTP_USER_AGENT"],"W3C_Validator"))
{
header("Content-type: application/xhtml+xml");
}
Users browsing this forum: No registered users and 1 guest