I am checking on my site: (1) if javascript is on/off (2) screen resolution And then redirecting to a basic version of the site. I can do with js no problem. Can any of this be done with PHP as opposed to javascript? I dont want to use any silly methods posting blank forms etc. I suppose to test if js is on/off using server side must be pretty difficult as I want to check on the server before even goes to browser, but surely screen res can be looked at as this is nothing to do with the browser. Not ideal at moment that I am using javascript to check for screen res when js may not even be on.
I don't think you can do such thing since PHP is executed on server side when the browser send a HTTP request. You know, the HTTP request header contains some information so we can detect which browser is (IE,Firefox, etc). But HTTP header doesn't contain information about javascript and screen resolution.