Posted By


daemondevin on 09/27/19

Tagged


Statistics


Viewed 1588 times
Favorited by 0 user(s)

getDoctype.inc.php


/ Published in: PHP
Save to your folder(s)

With this snippet you will have the ability to display the `` while sending the correct headers with support for content type negotiation.

It also will correct itself for the W3C validator which does not send the correct Accept header for `XHTML` documents.

Does **NOT** send `XHTML 1.1` to browsers that wont accept `application/xhtml+xml` because the snippet will make sure the browser groks XML before sending anything.
Visit: labs/PHP/DOCTYPE.php#bug-fix for details and a link to the W3C XHTML for more

URL: http://portableappz.x10.mx/extras/getDoctype

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.