Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Show Server Address

    Please could someone tell me how to create a script preferably in php, that will display my servers ipaddress on the page displayed in the browser.


    Thanks
    ValleymanSS

  • #2
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    PHP Code:
    <?php
    echo $_SERVER["SERVER_ADDR"]
    ?>
    ?

    Seeing as this is a php question, it'd be better off in the php forum.


  •  

    Posting Permissions

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