How to get Users Screen Resolution with PHP and Javascript
The only way to grab users screen resolution is via Javascript and there is not way to get it using only PHP as far as I know!! Well,nothing new,but the trick is interacting between the 2 programming languages
and get the job done. It seems quite easy just checking whether the cookie has been set and ,if not found, set it using Javascript and then refreshing the page and retrieve it with PHP,but what is going to happen if the user has Cookies disabled ? The code would start an infinite loop refreshing the page over and over again because , obviously the cookie can't be set.


| Price: | N/A FREE | Hits: | 33 |
| File Size: | Platforms: | Linux Windows | |
| Ratings: | Last Updated: | 2009-07-09 |
VIEW ALL
PHP