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" <[EMAIL PROTECTED]>
To: "Php general lijst" <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]]
> > > 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: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to