[PHP] Getting screen resolution and color depth

2001-09-16 Thread Salty Marine


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.

Scriptdocument.write(screen.width +  x  + screen.height)/script
Scriptdocument.write(screen.colorDepth +  bit)/script

Regards,
Salty



RE: [PHP] Getting screen resolution and color depth

2001-09-16 Thread Matthew Loff


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:[EMAIL PROTECTED]] 
Sent: Sunday, September 16, 2001 3:54 PM
To: [EMAIL PROTECTED]
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.

Scriptdocument.write(screen.width +  x  + screen.height)/script
Scriptdocument.write(screen.colorDepth +  bit)/script

Regards,
Salty


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Getting screen resolution and color depth

2001-09-16 Thread Seb Frost

But you could then re-submit the page with this data somehow, couldn't you?

- seb

-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED]]
Sent: 16 September 2001 21:04
To: 'Salty Marine'; [EMAIL PROTECTED]
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:[EMAIL PROTECTED]] 
Sent: Sunday, September 16, 2001 3:54 PM
To: [EMAIL PROTECTED]
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.

Scriptdocument.write(screen.width +  x  + screen.height)/script
Scriptdocument.write(screen.colorDepth +  bit)/script

Regards,
Salty


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


---
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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Getting screen resolution and color depth

2001-09-16 Thread Matthew Loff


As long as it doesn't interfere with any GET or POST data, you could
redirect the browser...

I haven't tried this, so I don't know if my syntax is perfectly correct,
but here's a suggestion...

BODY onLoad=document.location = 'somefile.php?screen_res=' +
screen.width + x + screen.height + 'color_depth=' +
screen.colorDepth


-Original Message-
From: Seb Frost [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, September 16, 2001 4:13 PM
To: Matthew Loff; 'Salty Marine'; [EMAIL PROTECTED]
Subject: RE: [PHP] Getting screen resolution and color depth


But you could then re-submit the page with this data somehow, couldn't
you?

- seb

-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED]]
Sent: 16 September 2001 21:04
To: 'Salty Marine'; [EMAIL PROTECTED]
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:[EMAIL PROTECTED]] 
Sent: Sunday, September 16, 2001 3:54 PM
To: [EMAIL PROTECTED]
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.

Scriptdocument.write(screen.width +  x  + screen.height)/script
Scriptdocument.write(screen.colorDepth +  bit)/script

Regards,
Salty


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]


---
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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]