Detect user mobile

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

    Detect user mobile

    i need php code which detect user mobile

    #2
    Use this code to detect browsers
    PHP Code:
    <?
    function raider_real_ua()
    {
    //GET REAL DEVICE USER AGENT
        $keyname_ua_arr = array('HTTP_X_DEVICE_USER_AGENT', 'HTTP_X_OPERAMINI_PHONE_UA','HTTP_X_BOLT_PHONE_UA', 'HTTP_X_MOBILE_UA', 'HTTP_USER_AGENT');
        foreach ($keyname_ua_arr as $keyname_ua) {
            if (!empty($_SERVER[$keyname_ua])) {
                return $_SERVER[$keyname_ua]; //REAL UA
                break;
            }
        }

    $short = explode(' ', raider_real_ua());
    echo ''.$short[0];  
    ?>

    Comment


      #3
      Originally posted by pyramid_raider View Post
      Use this code to detect browsers
      PHP Code:
      <?
      function raider_real_ua()
      {
      //GET REAL DEVICE USER AGENT
          $keyname_ua_arr = array('HTTP_X_DEVICE_USER_AGENT', 'HTTP_X_OPERAMINI_PHONE_UA','HTTP_X_BOLT_PHONE_UA', 'HTTP_X_MOBILE_UA', 'HTTP_USER_AGENT');
          foreach ($keyname_ua_arr as $keyname_ua) {
              if (!empty($_SERVER[$keyname_ua])) {
                  return $_SERVER[$keyname_ua]; //REAL UA
                  break;
              }
          }

      $short = explode(' ', raider_real_ua());
      echo ''.$short[0];  
      ?>
      Nice code, u wrote it yourself?
      <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

      Comment


        #4
        Originally posted by pyramid_raider View Post
        Use this code to detect browsers
        PHP Code:
        <?
        function raider_real_ua()
        {
        //GET REAL DEVICE USER AGENT
            $keyname_ua_arr = array('HTTP_X_DEVICE_USER_AGENT', 'HTTP_X_OPERAMINI_PHONE_UA','HTTP_X_BOLT_PHONE_UA', 'HTTP_X_MOBILE_UA', 'HTTP_USER_AGENT');
            foreach ($keyname_ua_arr as $keyname_ua) {
                if (!empty($_SERVER[$keyname_ua])) {
                    return $_SERVER[$keyname_ua]; //REAL UA
                    break;
                }
            }

        $short = explode(' ', raider_real_ua());
        echo ''.$short[0];  
        ?>
        funny how functions get renamed ;)


        Originally posted by arnage View Post
        Nice code, u wrote it yourself?
        I didnt see your post arnage .... we was thinking the same thing lol

        Comment


          #5
          Yep in two topic mate, just in opposite order.
          <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

          Comment


            #6
            Its funny if you google that code you see many different members of coding-talk's names to that function lol

            Comment


              #7
              Originally posted by something else View Post
              Its funny if you google that code you see many different members of coding-talk's names to that function lol
              this function will soon get as many ''copyrights'' as lava script LMFAO !
              It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
              ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
              ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
              キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

              Comment


                #8
                Unbelievable that someone could be so incompetent and rude at the same time.
                <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

                Comment


                  #9
                  Not new many people don't know what their doing.
                  Did I help you?
                  You can help me too
                  Your donations will help me finance my studies.

                  Comment


                    #10
                    sue me for changing copyrights or function name for that code lol.. if u want to share ur copyrigted codes than encrypt them before sharing else dont claim copyrights...

                    Comment


                      #11
                      Originally posted by pyramid_raider View Post
                      sue me for changing copyrights or function name for that code lol.. if u want to share ur copyrigted codes than encrypt them before sharing else dont claim copyrights...
                      It's not just gay this is stupid!
                      <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

                      Comment


                        #12
                        Originally posted by pyramid_raider View Post
                        sue me for changing copyrights or function name for that code lol.. if u want to share ur copyrigted codes than encrypt them before sharing else dont claim copyrights...
                        Bro.you're wrong somewhere...the people who shares doesn't ask for money but just their name as copyrights at the footer(not as 400*400 banners) I guess we can & we must give them the respect for their hard work of sleepless nights,hope you understand now.
                        I need some facebook likes, can you please help me
                        http://facebook.com/softwarefreakin
                        I noticed social media is really powerful
                        Well DONE is better than well SAID

                        Comment

                        Working...
                        X