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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With