Hi,
google: http header resolution php
results in:
Question :
Can I get the screen resolution and like with php?
Answer :
The quick answer is no, then you are probably asking why can't I do that with php. OK here is a longer answer. PHP is a serverside scripting language and therefor has nothing to do with the type of a specific client. Then you might ask "why can I then get the browser agent from php?", thats because that information is sent with the initial HTTP headers upon requst to the server. So if you want client information that's not sent with the HTTP header you must you a client scripting language like javascript, a good ressource is found below.
http://www.developer.irt.org/script/script.htm
IS you are to be using javascript, be aware that not everybody will allow javascript to be run. Better is to program you site independent of screen-size, and use relative sizes / positioning, using e.g., CSS