I'm using the following code to get the screen resolution.
This works fine with WAMP server but when I put it on the remote Linux server, $height
returns 0
.
HTML/PHP
<head>
....
<script language="javascript">
var y=window.screen.availHeight;
var x=window.screen.availWidth;
window.location.href = "index.php?height=" + y + "&width=" + x;
break;
</head>
<?php
$height=$_GET['height'];
$height=intval($height);
echo($height);
?>