PHP is server side only. To get the user's browser resolution, you will have to have the browser send it to you. This is normally done with JavaScript. I don't, unfortunately, have an example for you. But try searching Javascript sites for an example.