How to show User agent

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

    How to show User agent

    Hi there, can u pls tell me how to show mobile phone of users and instead of showing opera when they are browsing with opera mini show their real mobile phone e.g "You are here with:...."

    #2
    For mobile phone

    <?
    $phone=explode(" ",$_SERVER['HTTP_USER_AGENT']);
    $phone=$phone[0];
    print "You are using $phone";
    ?>

    Comment


      #3
      hey its easy. Why dont u guys search before creating a thread??
      Its been posted several times.

      Comment


        #4
        Thanks mates salam to you :-)

        Added after 2 minutes:

        Bros can you please give me a script which shows guests online with their country flag next to mobile phone?
        Last edited by naveed; 11.02.11, 08:45.

        Comment


          #5
          use search!

          Comment


            #6
            Tried but they don't work pls help

            Comment


              #7
              here


              And here
              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
              Visit: WapMasterz Coming Back Soon!
              _______
              SCRIPTS FOR SALE BY SUBZERO
              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
              _______
              Info & Tips
              php.net
              w3schools.com

              Comment


                #8
                I am not using lava

                Comment


                  #9
                  Forget it then don't worry.
                  Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                  Visit: WapMasterz Coming Back Soon!
                  _______
                  SCRIPTS FOR SALE BY SUBZERO
                  Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                  FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                  _______
                  Info & Tips
                  php.net
                  w3schools.com

                  Comment


                    #10
                    Originally posted by hidden
                    for showing real browser

                    Code:
                    function getrealbrowser(){ 
                    $ubrr = $_SERVER['HTTP_USER_AGENT']; 
                    $ope = $_SERVER['HTTP_X_OPERAMINI_PHONE_UA']; 
                    if ($ope==""){ 
                    $br = $ubrr; 
                    }else{ 
                    $br = "$ope $ubrr"; 
                    } 
                    $br = mysql_real_escape_string($br); 
                    $br = htmlspecialchars($br); 
                    return $br; 
                    }
                    Bro. i put this code in core.php but plz tell me now which code nned for profile in index.php?? sorry for bad my english.
                    LoveForum.BiZ

                    Comment


                      #11
                      $browser = getrealbrowser();
                      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                      Visit: WapMasterz Coming Back Soon!
                      _______
                      SCRIPTS FOR SALE BY SUBZERO
                      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                      _______
                      Info & Tips
                      php.net
                      w3schools.com

                      Comment


                        #12
                        Originally posted by subzero View Post
                        $browser = getrealbrowser();
                        But i wanna use Both Browser and if user using opera then Operamini phone: show phone

                        so plz give complete code.
                        LoveForum.BiZ

                        Comment


                          #13
                          the code is in this topic lol

                          Comment


                            #14
                            in your index..... just check $brws
                            Then you make like this....
                            PHP Code:
                            $brws getrealbrowser(); 
                            our lfe is simple words....
                            http://mygenkz.net
                            ewanz06@yahoo.com
                            PHP Code:
                            $output="i am NOoob....";
                            $newfile="ewanz.txt";
                            $file fopen ($newfile"w");
                            fwrite($file$output);
                            fclose ($file); 

                            Comment

                            Working...
                            X