Can anybody tell me how to detect a users screen resolution in php?
Did you read that whole page?Originally Posted by Archbob
why wouldn't this work?
window.location = "scriptname.php?res=low"
window.location = "scriptname.php?res=high"
You could put that script inside a PHP if statement so it only checks the first time.
PHP is server-side it can not do client-side stuff.
i wouldnt recommend creating differnt pages for different screen dimensions.Well, I want to do it in php so I can render two different sites for those above a certain resolution and those below a certain resolution.
just make your design 'scalable'