Discussion:
browser info
georg chambert
2013-12-21 23:44:05 UTC
Permalink
Does änyone know if there exist any info on the screen properties of the device on which the browser is running ?
(does HTTP supply ?) It has a major influence on how pictures will come onto the browser display.

Regards
Georg
m***@behnke.biz
2013-12-21 23:50:29 UTC
Permalink
You can detect that with javascript and send it with the request to the backend.
Or you can use media queries in css.
Post by georg chambert
Does änyone know if there exist any info on the screen properties of the
device on which the browser is running ?
(does HTTP supply ?) It has a major influence on how pictures will come onto
the browser display.
Regards
Georg
--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: ***@behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Aziz Saleh
2013-12-21 23:58:34 UTC
Permalink
Post by m***@behnke.biz
You can detect that with javascript and send it with the request to the backend.
Or you can use media queries in css.
00:44
Does Ànyone know if there exist any info on the screen properties of the
device on which the browser is running ?
(does HTTP supply ?) It has a major influence on how pictures will come
onto
the browser display.
Regards
Georg
--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3
Tel.: 0174 / 9722336
Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal
http://www.behnke.biz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Here is a list of all SERVER variables:

http://php.net/manual/en/reserved.variables.server.php

Unfortunately, it doesn't have anything you can use besides the USER_AGENT
(browser, system, versions, js enabled, etc..):

http://www.php.net/get_browser

As Marco said, you will need to implement client side Javascript to get the
screen info including width/height/resolution/etc..

Aziz

Continue reading on narkive:
Loading...