I don't think you can! Usually javascript is the way to go when you want to extract userinformation.
Make a page with a javascript, get your info and go directly to your php-page or however you want it..
<?php
if(!$checked)
{
echo '<script language="Javascript">';
echo 'if(document.all) width = screen.Width;';
echo 'if(document.layers) width = "" /don't know..';
echo 'location.href = "page.php3?checked=true&width="+width;';
echo '</script>';
}
echo "Width: $width";
?>
There may be some coding mistakes here, wrote it down quickly, this also not may be the best way..