Getting screen resolution and color depth
| From: | Salty Marine | Date: | Sun, 16 Sep 2001 19:53:40 +0000 |
| Subject: | Getting screen resolution and color depth | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67522@lists.php.net to get a copy of this message | ||
Greetings to You:
How do I get the user's screen resolution and color depth? Here's how it is
done in Javascript. I want to do it and put the results into a PHP varibal.
<Script>document.write(screen.width + " x " + screen.height)</script>
<Script>document.write(screen.colorDepth + " bit")</script>
Regards,
Salty