Re: User Screen Resolution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I am new to PHP and couldn't find any Globals for the User's Screen
> Resolution. (don't laugh at me please)
>
> I used to use a Javascript function to pass the resolution using
> screen.width and screen.height.
>
> What I am actually trying to do is make a page resize depending on screen
> resolution, in case that helps anyone.
>
>

The reason why this worked for javascript is because it is a client side
instruction set. PHP is a server side instruction set. PHP has no idea
what resolution the user's screen is nor can it resize the browser. In
fact, PHP can't do anything with the browser.

I should just copy and save the above and paste it into everyone one of
these types of questions. ;)

-- 
--Matthew Sims
--<http://killermookie.org>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux