construction
Posted 2006-06-26 12:15:55
Hi,
Can someone tell me how can I get the screen resolution using PHP
SBalan Group
http://www.sbalanprojects.com/
Philarmon (moderator)
Posted 2006-06-26 19:08:00
You can't.
PHP is a server side script, that means it is executed on the server BEFORE the browser reads the HTML output.
And you can only figure out the resolution on the client side - the server can't know which resolution is there.
So you should do the screen resolution check with java script and then switch stuff depending on it.
construction
Posted 2006-06-27 11:09:16
Thanx Philarmon
Ok I got it... but can u let me know how can I use
java script for the same...
SBalan Group
http://www.sbalanprojects.com/
webanewindia
Posted 2007-11-28 13:09:58
Ok I got it... but can u let me know how can I use
java script for the same...