Sending screen resolution

Discussion in 'PHP' started by imhawk, Mar 30, 2010.

  1. #1
    Is there a way to send screen resolution (or fake it) with php?
    I know referer and everything can be faked, but don't know about screen resolution.

    Help! ;)
     
    imhawk, Mar 30, 2010 IP
  2. Nyu

    Nyu Peon

    Messages:
    79
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You cannot read the screan resoltion of a client at runtime. The PHP code is processed on the server so you have no access to user settings at runtime (except referer and some other parts that are send by the browser with a request). However, you can read the users screen resoltion in javascript ;)
     
    Nyu, Mar 30, 2010 IP
  3. imhawk

    imhawk Well-Known Member

    Messages:
    615
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Nah, I don't want to read, but send the fake resolution.
     
    imhawk, Mar 30, 2010 IP
  4. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #4
    That is not possible. There might be some firefox addons that you can use but this is not possible with php. If you want to hide your resolution you could simply turn off javascript in your browser.
     
    stephan2307, Mar 30, 2010 IP
  5. imhawk

    imhawk Well-Known Member

    Messages:
    615
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    140
    #5
    stephan2307, thank! This is what I wanted to know.
     
    imhawk, Mar 30, 2010 IP