remote end's screen resolution

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alex Shi

    remote end's screen resolution

    Hello,

    I'd like to know which php variable can tell the screen resolution of
    a remote user? Thanks!

    Alex Shi

    --
    =============== =============== =============== =====
    Cell Phone Batteries at 30-50%+ off retail prices!

    =============== =============== =============== =====
  • Jedi121

    #2
    Re: remote end's screen resolution

    Alex Shi a écrit le 23/03/2004 :[color=blue]
    > Hello,
    >
    > I'd like to know which php variable can tell the screen resolution of
    > a remote user? Thanks!
    >
    > Alex Shi[/color]

    Think twice before asking... PHP is server side, it can't know clients
    info it doesn't send.
    Use Javascript instead.


    Comment

    • Xerxes

      #3
      Re: remote end's screen resolution

      PHP is server-side script, you need javascript for client-side stuff.
      You can get the screen size on the client side using javascript and pass
      it to your PHP file, using $_GET.

      "Alex Shi" <chpshi@stonix. com> wrote in message
      news:MJ28c.1134 16$bv.106999@nn tp-post.primus.ca. ..[color=blue]
      > Hello,
      >
      > I'd like to know which php variable can tell the screen resolution of
      > a remote user? Thanks!
      >
      > Alex Shi
      >
      > --
      > =============== =============== =============== =====
      > Cell Phone Batteries at 30-50%+ off retail prices!
      > http://www.pocellular.com
      > =============== =============== =============== =====[/color]


      Comment

      • Alex Shi

        #4
        Re: remote end's screen resolution

        > > Hello,[color=blue][color=green]
        > >
        > > I'd like to know which php variable can tell the screen resolution of
        > > a remote user? Thanks!
        > >
        > > Alex Shi[/color]
        >
        > Think twice before asking... PHP is server side, it can't know clients
        > info it doesn't send.
        > Use Javascript instead.
        >[/color]

        The answer of my question is no. I just checked phpinfo() and it
        told me there's no such a variable to hold that thing. It is a 'NO'
        but not what you meant to say. When a script is requested the
        request string tells something of the client's side, say IP address,
        browser (user agent) info, language, etc. So I wondered if it could
        tell something more - This is what I asked about. Unfortunately
        it does not tell anything more that IP, user agent and language.

        Alex




        Alex



        Alex

        Comment

        • Perttu Pulkkinen

          #5
          Re: remote end's screen resolution


          "Alex Shi" <chpshi@stonix. com> wrote> > Think twice before asking... PHP is
          server side, it can't know clients
          [color=blue]
          > The answer of my question is no. I just checked phpinfo() and it
          > told me there's no such a variable to hold that thing. It is a 'NO'
          > but not what you meant to say.[/color]

          No, that is EXACLTY what the person replied. Because client doesn't send
          such information, THAT's why php ans server doesn't see it! Of course php
          developers woudl add such a feature, if it would be possible.

          But by playing with javascript you could add some info about window size at
          least to QUERY STRING and thereby it available to php. But then you would
          need to come to final page from a link in your own "referer page" or use
          default information in other cases.

          www.example.com?height=600&width=800



          Comment

          • Pedro Graca

            #6
            Re: remote end's screen resolution

            Alex Shi wrote:[color=blue]
            > When a script is requested the
            > request string tells something of the client's side, say IP address,
            > browser (user agent) info, language, etc.[/color]

            My User-Agent string is "ELinks/0.9.1 (textmode; Linux 2.4.25-1-686 i686; 108x46)"

            So you can use that info and format your pages to 108 columns and 46
            lines :)
            --
            USENET would be a better place if everybody read: : mail address :
            http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
            http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
            http://www.expita.com/nomime.html : to 10K bytes :

            Comment

            • Phil Roberts

              #7
              Re: remote end's screen resolution

              With total disregard for any kind of safety measures "Alex Shi"
              <chpshi@stonix. com> leapt forth and uttered:
              [color=blue]
              > I'd like to know which php variable can tell the screen
              > resolution of a remote user? Thanks!
              >[/color]

              Screen resolution is irrelevent information anyway. As it tells you
              nothing about the viewers window size.

              I have a relatively high screen res, I almost never maximise my
              browsing windows.

              --
              Phil Roberts | Dork Pretending To Be Hard | http://www.flatnet.net/

              Comment

              • Xerxes

                #8
                Re: remote end's screen resolution

                "Phil Roberts" <philrob@HOLYfl atnetSHIT.net> wrote in message
                news:Xns94B663D 95703Dphilrober ts@216.196.97.1 32...[color=blue]
                > With total disregard for any kind of safety measures "Alex Shi"
                > <chpshi@stonix. com> leapt forth and uttered:
                >[color=green]
                > > I'd like to know which php variable can tell the screen
                > > resolution of a remote user? Thanks!
                > >[/color]
                >
                > Screen resolution is irrelevent information anyway. As it tells you
                > nothing about the viewers window size.
                >
                > I have a relatively high screen res, I almost never maximise my
                > browsing windows.
                >
                > --
                > Phil Roberts | Dork Pretending To Be Hard | http://www.flatnet.net/[/color]

                Wouldn't innerwidth and innerheight return the browser dimension, when
                it is not maximized? Just wondering...


                Comment

                • Alex Shi

                  #9
                  Re: remote end's screen resolution

                  > Alex Shi wrote:[color=blue][color=green]
                  > > When a script is requested the
                  > > request string tells something of the client's side, say IP address,
                  > > browser (user agent) info, language, etc.[/color]
                  >
                  > My User-Agent string is "ELinks/0.9.1 (textmode; Linux 2.4.25-1-686 i686;[/color]
                  108x46)"[color=blue]
                  >
                  > So you can use that info and format your pages to 108 columns and 46
                  > lines :)[/color]

                  What does it tell about? Terminal?
                  [color=blue]
                  > --
                  > USENET would be a better place if everybody read: : mail address :
                  > http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
                  > http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
                  > http://www.expita.com/nomime.html : to 10K bytes :[/color]

                  Comment

                  • Pedro Graca

                    #10
                    Re: remote end's screen resolution

                    Alex Shi wrote:[color=blue][color=green]
                    >> My User-Agent string is "ELinks/0.9.1 (textmode; Linux 2.4.25-1-686 i686; 108x46)"
                    >>
                    >> So you can use that info and format your pages to 108 columns and 46
                    >> lines :)[/color]
                    >
                    > What does it tell about? Terminal?[/color]

                    Yep! It means my browser is ELinks version 0.9.1; that I run it in
                    textmode, under Linux, width a size of 108 x 46.

                    Here's a screenshot (awful quality) of http://www.w3.org/
                    Daftar dan mainkan slot gacor dengan RTP tertinggi hari ini. VIPTOTO, situs terpercaya untuk cuan besar dari slot online!

                    --
                    USENET would be a better place if everybody read: : mail address :
                    http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
                    http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
                    http://www.expita.com/nomime.html : to 10K bytes :

                    Comment

                    • Pedro Graca

                      #11
                      Re: remote end's screen resolution

                      Pedro Graca wrote:[color=blue][color=green][color=darkred]
                      >>> My User-Agent string is "ELinks/0.9.1 (textmode; Linux 2.4.25-1-686 i686; 108x46)"[/color][/color][/color]

                      I also use another browser. It's User-Agent string is
                      "BBB (Bare Bones Browser) v!ERROR!"
                      --
                      USENET would be a better place if everybody read: : mail address :
                      http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
                      http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
                      http://www.expita.com/nomime.html : to 10K bytes :

                      Comment

                      • Jedi121

                        #12
                        Re: remote end's screen resolution

                        Alex Shi a écrit le 24/03/2004 :[color=blue]
                        > The answer of my question is no. I just checked phpinfo() and it
                        > told me there's no such a variable to hold that thing. It is a 'NO'
                        > but not what you meant to say. When a script is requested the
                        > request string tells something of the client's side, say IP address,
                        > browser (user agent) info, language, etc. So I wondered if it could[/color]

                        And you should be aware that *you can not trust* this values
                        (especially User Agent).
                        [color=blue]
                        > tell something more - This is what I asked about. Unfortunately
                        > it does not tell anything more that IP, user agent and language.[/color]
                        [color=blue]
                        > Alex
                        > Alex
                        > Alex[/color]

                        Jedi121
                        Jedi121
                        Jedi121 :)


                        Comment

                        Working...