Http_x_up_devcap_screenpixels

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Http_x_up_devcap_screenpixels

    Hello how would you use this code to display the screensize ?

    this is what i have so far but its not working

    function screensize(){
    $screensize = $_SERVER['HTTP_X_UP_DEVCAP_SCREENPIXELS'];
    echo "$screensize";
    }

    screensize();


    im noob when it comes to php just started with it please explain the problem in detail thanks

    #2
    where you find this ? HTTP_X_UP_DEVCAP_SCREENPIXELS ?
    I never heard of anything like this ... :-|

    You can get screen size by JavaScript ...
    or info from some server variables like
    Code:
     $_SERVER["HTTP_X_WAP_PROFILE"];
     $_SERVER["HTTP_PROFILE"];
     $_SERVER["HTTP_x"];
    Unamos los corazones,hoy todos somos multicolores!

    Comment


      #3
      <?php

      function screensize(){
      $screensize = $_SERVER["HTTP_X_WAP_PROFILE"];;
      echo "$screensize";
      }

      screensize();


      ?>

      is this right ?

      Comment


        #4
        Plenty of use for HTTP_X_UP_DEVCAP_SCREENPIXELS on google:
        HTTP_X_UP_DEVCAP_SCREENPIXELS - Google Search

        Comment


          #5
          Trust me ive looked but i cant find anything that i understand fully or that works thats why im here asking for help i always ask google first then go onto forums ;)

          Comment


            #6
            variables posted by me must return a link รก.is a page where you find all kind of info about your phone

            Including screen size ...

            Added after 6 minutes:

            have a look here.
            Yahoo! Groups

            Maybe will work HTTP_UA_PIXELS .. I am from mobile now .. Just try and post here , I am also courious
            Last edited by morency; 12.09.10, 20:52.
            Unamos los corazones,hoy todos somos multicolores!

            Comment


              #7
              <?php

              function screensize(){
              $screensize = $_SERVER["HTTP_UA_PIXELS"];;
              echo "$screensize";
              }

              screensize();


              ?>

              this is what i got back :

              Notice: Undefined index: HTTP_UA_PIXELS in C:\wamp\www\killerphp\testing.php on line 4

              Originally posted by NoFx View Post
              <?php

              function screensize(){
              $screensize = $_SERVER["HTTP_UA_PIXELS"];;
              echo "$screensize";
              }

              screensize();


              ?>

              this is what i got back :

              Notice: Undefined index: HTTP_UA_PIXELS in C:\wamp\www\killerphp\testing.php on line 4
              <?php

              function screensize(){
              $screensize = $_SERVER["HTTP_UA_PIXELS"];
              echo "$screensize";
              }

              screensize();


              ?>

              Comment

              Working...
              X