This is a discussion on Get resoltion within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello, Does anyone know how to get the screen resolution of the computer that is browsing my site? Kind regards, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Jan Souman wrote:
> Does anyone know how to get the screen resolution of the computer that is > browsing my site? i believe it's possible with javascript, but it certainly isn't possible with PHP. "Screen resolution", in the context of a server-side app, means /absolute nothing/, because the remote user agent might not even have a screen. For example, wget/curl running via a cron job, or a web crawler (like google bots). -- ----- stephan beal Registered Linux User #71917 http://counter.li.org I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. |
|
|||
|
"Jan Souman" <j.l.souman@hetnet.nl> wrote in message
news:bflkp0$f42$1@reader10.wxs.nl... > Hello, > > Does anyone know how to get the screen resolution of the computer that is > browsing my site? > > Kind regards, > > Jan Javascript has access to those details and you can set a cookie from Javascript then collect it via PHP. I cant remember all the details offhand, try alt.comp.lang.JavaScript or just do a groups search on google. As far as I remember you can read the browser maximum width but it doesn't tell you about frame widths or if the browser is not shown full screen. The info is in the DOM part so only works for 'recent' browsers. Best of Luck, Ron |
![]() |
| Thread Tools | |
| Display Modes | |
|
|