PDA

View Full Version : Finding clients resolution with php?



Ares
January 20th, 2002, 16:20
I saw how to do it once with JS, but is there a way to do it with php?

Like, I want to find wether the visitor is @ 640x480, 800x600, etc.

Is there a way I can get this? A enviroment variable mabey?

niv
January 20th, 2002, 16:21
Sorry, the server can't pick up that kind of information, so it's got to be client-side and that will have to be JavaScript. :(

After finding the resolution however, you can redirect the user to a page like index.php?640_480 :)

Ares
January 20th, 2002, 16:24
good point, thanks :D