How to show "Your IP Address"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • WSBlue
    Brigadier General

    • Apr 2006
    • 1415

    How to show "Your IP Address"

    Hi, George and friends,
    when open http://www.dbtechnosystems.com/ can see "Your IP Address". May I know how to do it?
    Thanks
  • Collectors-info
    General

    • Feb 2006
    • 8703

    #2
    Re: How to show "Your IP Address"

    Your page needs to be php, then insert the code below in a htlm box on your page.

    <?php
    echo 'Your IP Address is: ' .$_SERVER['REMOTE_ADDR']. '';
    ?>
    Regards Chris.

    Collectables, Collecting, collectors-info.com

    www.chrismorris.co.uk

    House build project

    Comment

    • WSBlue
      Brigadier General

      • Apr 2006
      • 1415

      #3
      Re: How to show &quot;Your IP Address&quot;

      Originally posted by Collectors-info View Post
      Your page needs to be php, then insert the code below in a htlm box on your page.

      <?php
      echo 'Your IP Address is: ' .$_SERVER['REMOTE_ADDR']. '';
      ?>
      Done. Thanks a lot.
      How to change font type and font size?

      Comment

      • Collectors-info
        General

        • Feb 2006
        • 8703

        #4
        Re: How to show &quot;Your IP Address&quot;

        Not quite sure if this is correct. But! it seems to work.

        <?php
        echo "<font face='Comic Sans MS' size='4' color='red'>";
        echo 'Your IP Address is: ' .$_SERVER['REMOTE_ADDR']. '';
        ?>
        Regards Chris.

        Collectables, Collecting, collectors-info.com

        www.chrismorris.co.uk

        House build project

        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #5
          Re: How to show &quot;Your IP Address&quot;

          Simpler:

          Add the following text in your page:

          Your IP Address is '.$_SERVER['REMOTE_ADDR'].'

          Format it as you like (font, color, size etc) as if it was simple text.

          Right click it, select HTML, and add the following codes :

          In the Before Tag:

          <?php
          echo'


          In the After Tag:

          ';
          ?>


          DON'T miss the quotes or it won't work. Also make sure to only copy / paste (from here) only the code, not any white space or line.
          Navaldesign
          Logger Lite: Low Cost, Customizable, multifeatured Login script
          Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
          DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
          Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

          Comment

          • WSBlue
            Brigadier General

            • Apr 2006
            • 1415

            #6
            Re: How to show &quot;Your IP Address&quot;

            can we use number for color,
            instead of using name,
            like grey the number is 282828

            Chrome showing GREY and IE showing GREEN while actually meant to be grey.

            Comment

            • WSBlue
              Brigadier General

              • Apr 2006
              • 1415

              #7
              Re: How to show &quot;Your IP Address&quot;

              Originally posted by Collectors-info View Post
              Not quite sure if this is correct. But! it seems to work.

              <?php
              echo "<font face='Comic Sans MS' size='4' color='red'>";
              echo 'Your IP Address is: ' .$_SERVER['REMOTE_ADDR']. '';
              ?>
              how to make it into only one row?

              Comment

              Working...
              X