Results 1 to 7 of 7

Thread: How to show "Your IP Address"
      
   

  1. #1
    WSBlue's Avatar
    WSBlue is offline Brigadier General
    Join Date
    Apr 2006
    Posts
    1,416

    Default 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

  2. #2
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default 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']. '';
    ?>

  3. #3
    WSBlue's Avatar
    WSBlue is offline Brigadier General
    Join Date
    Apr 2006
    Posts
    1,416

    Default Re: How to show "Your IP Address"

    Quote 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?

  4. #4
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: How to show "Your IP Address"

    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']. '';
    ?>

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: How to show "Your IP Address"

    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!


  6. #6
    WSBlue's Avatar
    WSBlue is offline Brigadier General
    Join Date
    Apr 2006
    Posts
    1,416

    Default Re: How to show "Your IP Address"

    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.

  7. #7
    WSBlue's Avatar
    WSBlue is offline Brigadier General
    Join Date
    Apr 2006
    Posts
    1,416

    Default Re: How to show "Your IP Address"

    Quote 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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49