Possible Duplicate:
Getting the screen resolution using PHP
well the question is self explanatory
where i want to reach is
$width = ; //user screen width in here
F1! F1!
Possible Duplicate:
Getting the screen resolution using PHP
well the question is self explanatory
where i want to reach is
$width = ; //user screen width in here
F1! F1!
You need JavaScript, not PHP.
var screenWidth = window.screen.width,
screenHeight = window.screen.height;
You can then send it to the server via Ajax (with an XmlHttpRequest
).
See also the MDC window.screen
docs.
You can't, not in php. PHP is strictly server-side.
you can't get it server-side, you have to get it client-side with javascript with innerWidth. you can pass it to the server-side with AJAX if you need to.
You can use JavaScript. Get the user's screen, send it to the server and get it by php.