Hi I was wondering which doctype I should put on my php pages if any... I'd really like to use W3s checker but don't have a clue to which one I should use... I put this to run at the top of each of my pages and it just did nothing when I tried to check... said it couldn't find it... The top things are just so they don't cache the file.
Oh and if it matters with the code I include this from a file using <?php include "head.php";?> Thanks
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">";
?>whatever you intend its output to be. html 4.01 transitional/strict, xhtml, whatever you think it should be.correct, the doctype has nothing to do with php, it still outputs it to html so why would it have anything to do with php.
Oh and if it matters with the code I include this from a file using <?php include "head.php";?> Thanks
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">";
?>whatever you intend its output to be. html 4.01 transitional/strict, xhtml, whatever you think it should be.correct, the doctype has nothing to do with php, it still outputs it to html so why would it have anything to do with php.