David Dorward wrote:
Wiert Dijkkamp wrote:
My website uses sessions and therefore sends PHPSessionID's throug the
url whenever a browser does not accept cookies. This works well except
tha when i try to validate the webpage with W3C it complains about my
url's having & which I should change in &. How can I tel my webserver
to do that? url: http://www.kunstenschool.nl
http://www.w3.org/QA/2005/04/php-session
thanks a lot. I put "ini_set('arg_separator.output','&');" in my
fix_code function like this an now it works.
<?php
$charset = "iso-8859-1";
$mime = "text/html";
function fix_code($buffer) {
ini_set('arg_separator.output','&');
$in = array(" />"," px;");
$out= array(">","px;");
return (str_replace($in, $out, $buffer));
}
ob_start("fix_code");
$prolog_type = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01
Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>
<html lang='nl'>";
header("Content-Type: $mime;charset=$charset");
print $prolog_type;
?>
--
wiert