What cragz said
heres something that may help though:
<?php
if(!isset($_GET['xres'] && !isset($_GET['yres'])) { ?>
<script>
document.write('<meta http-equiv="Refresh" Content="0; url=http://www.yourdomain.com/?xres='+screen.width+'&yres='+screen.height+'">');
</script>
<?php } else {
if($_GET['xres'] >= 1024) {
header("Location: http://www.yourdomain.com/highres.php");
}
else
{
header("Location: http://www.yourdomain.com/lowres.php");
}
?>