Screen Resolution in PHP
I was trying to get Screen resolution using PHP server side program, only to find out that it is not possible! Logically speaking too, PHP will be parsed on the server, prior showing it to the User. So the screen resolution will be on the client side e.g. the browser.However using simple Javascript and cookie we can send the Screen size to the Server. The logic flow is
1. Get the screen resolution using Javascript
2. Store the screen size data into a cookie using Javascript