Announcement

Collapse
No announcement yet.

ip address(and IP details),screen reselution , browser version

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

  • ip address(and IP details),screen reselution , browser version

    please ,,,I want php code to appear ip address(and IP details), screen reselution , browser version.


    In PHP NOT JS

    thanx

  • #2
    Ip address is $REMOTE_ADDR, but you cannot get the screen resolution without using JS.

    Comment


    • #3
      thanx


      but can i get details of ip ,like company .

      Comment


      • #4
        <!-- THREE STEPS TO INSTALL RESOLUTION PAGE:

        1. Paste the coding into the HEAD of your HTML document
        2. Add the last code into the BODY of your HTML document
        3. Be sure to update the resolution pages to ones on your site -->

        <!-- STEP ONE: Copy this code into the BODY of your HTML document -->

        <HEAD>

        <SCRIPT LANGUAGE="JavaScript">

        <!-- This script and many more are available free online at -->
        <!-- The JavaScript Source!! http://javascript.internet.com -->

        <!-- Begin
        function redirectPage() {
        var url640x480 = "http://www.yoursite.com/640x480";
        var url800x600 = "http://www.yoursite.com/800x600";
        var url1024x768 = "http://www.yoursite.com/1024x768";
        if ((screen.width == 640) && (screen.height == 480))
        window.location.href= url640x480;
        else if ((screen.width == 800) && (screen.height == 600))
        window.location.href= url800x600;
        else if ((screen.width == 1024) && (screen.height == 768))
        window.location.href= url1024x768;
        else window.location.href= url640x480;
        }
        // End -->
        </script>

        <!-- STEP TWO: Copy this code into the BODY of your HTML document -->

        <center>
        <form>
        <input type=button value="Enter!" onClick="redirectPage()">
        </form>
        </center>

        <!-- STEP THREE: Don't forget to update the URLs in the code above! -->

        <p><center>
        <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
        by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
        </center><p>

        <!-- Script Size: 1.29 KB -->

        Hope this helps.

        Comment


        • #5
          but can i get details of ip ,like company .
          $REMOTE_HOST

          or use www.samspade.org
          Contentteller Community Forums

          Comment


          • #6
            $hostname = gethostbyaddr(getenv('REMOTE_ADDR'));

            Comment

            Loading...
            Working...
            X