RE: [PHP] Getting screen resolution and color depth

From: Date: Sun, 16 Sep 2001 20:12:52 +0000
Subject: RE: [PHP] Getting screen resolution and color depth
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-67524@lists.php.net to get a copy of this message
But you could then re-submit the page with this data somehow, couldn't you? - seb -----Original Message----- From: Matthew Loff [mailto:matt@willetts.com] Sent: 16 September 2001 21:04 To: 'Salty Marine'; php-general@lists.php.net Subject: RE: [PHP] Getting screen resolution and color depth Can't be done... 1) Browser sends request 2) PHP page is compiled and executed 3) PHP output is sent to browser 4) Browser displays page/executes javascript/etc. -----Original Message----- From: Salty Marine [mailto:saltymarine@yahoo.com] Sent: Sunday, September 16, 2001 3:54 PM To: php-general@lists.php.net Subject: [PHP] Getting screen resolution and color depth 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

« previous php.general (#67524) next »