Get resoltion

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, ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-23-2003
Jan Souman
 
Posts: n/a
Default Get resoltion

Hello,

Does anyone know how to get the screen resolution of the computer that is
browsing my site?

Kind regards,

Jan


Reply With Quote
  #2 (permalink)  
Old 07-23-2003
stephan beal
 
Posts: n/a
Default Re: Get resoltion

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.

Reply With Quote
  #3 (permalink)  
Old 07-24-2003
Ron
 
Posts: n/a
Default Re: Get resolution

"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


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:19 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0