Re: get a screen resolution

From: Date: Fri, 06 Jul 2001 11:26:12 +0000
Subject: Re: get a screen resolution
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56484@lists.php.net to get a copy of this message
The browser detection etc. capabilities all come from the HTTP_USER_AGENT variable.. from this it is possible to interpret browser, platform and a number of other things. Unfortunately screen resolution is not one of these. PHP itself has no way of detecting anything about the client, only what it is told (if that makes any sense) The only possibility is for JavaScript to "tell" PHP about it..ie.. when a link within the site is pressed (say from a splash screen or a login box) then have javascript append on the resolution to the redirect url, from which php will then know HTH,Tom ----- Original Message ----- From: "Marc van Duivenvoorde" <yhcmarc@gmx.net> To: "Php general lijst" <php-general@lists.php.net> Sent: Friday, July 06, 2001 12:24 PM Subject: RE: [PHP] get a screen resolution > I know I can do it with javascript, but if possible I'd like to do it with php. > > Marc van Duivenvoorde > > At 02:12 PM 7/6/2001 +0300, you wrote: > >JavaScript > > > > > -----Original Message----- > > > From: Marc van Duivenvoorde [mailto:yhcmarc@gmx.net] > > > Sent: 6 iulie 2001 14:18 > > > To: Php general lijst > > > Subject: [PHP] get a screen resolution > > > > > > > > > I'm trying to make a small browser and screen resolution > > > script for my > > > site, the browser part isn't a problem, but I can't find a > > > function for > > > screen resolutions, does anyone know whether such a function exists. > > > > > > Thanks, > > > > > > Marc van Duivenvoorde > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: > > > php-list-admin@lists.php.net > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#56484) next »