Php can detect IP, hostname, client agent etc. Can php detect client browser monitor size/resolution?
You'll have to use PHP together with JavaScript, like in this example:
$url = $_SERVER['PHP_SELF'];
if( isset($HTTP_COOKIE_VARS["res"]) )
$res = $HTTP_COOKIE_VARS["res"];
else {
?>
Your screen resolution is " . $width . " by " . $height . ".
The width/height of this table is " . $tb_width . " by " . $tb_height . ".
");