Click to See Complete Forum and Search --> : Moniter Resolution Sniff?


Mr Initial Man
12-23-2007, 01:00 AM
Is there a way to use PHP to check what moniter resolution a user is using?

felgall
12-23-2007, 01:50 AM
No, you'd have to use JavaScript for that as PHP never leaves the server.

Unless it is for statistical purposes the monitor resolution is not all that relenant in any case since most people with higher resolutions do not have their browser open full screen.

Mr Initial Man
12-23-2007, 01:52 AM
Damn. I was gonna use it to choose a stylesheet for my webpage, since my menu takes up a LOT of room at lower resolutions

felgall
12-23-2007, 01:02 PM
It wouldn't help much to test the screen resolution in that case then anyway. What you need to use is the internal viewport size of the browser.