Jump to content

tony5429

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tony5429's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I guess that's the only way to do it...
  2. Well the default document is set as index.php so when the user types the domain name, i would assume he/she goes directly to the index.php (the script I posted above). of course, iis is m$ so there is prolly some hidden security page or something that is screwing me over. Is there any other way for PHP to get the IP address of the visitor?
  3. Have you tried using explode() to split the string into an array of strings between the \n's and then using a for loop to display the array of strings with echo "<br>"; between each one?
  4. [code] <?php $ip = GetHostByName($_SERVER['REMOTE_ADDR']); ?> [/code] ^There's the script. I want to get the IP address of the visitor to the page, however, I keep getting the local IP address of the server itself (192.168.3.1). I've used gethostbyname() a million times before on apache with no problem, but right now i'm using IIS (the devil) and its just not working. any ideas, anyone?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.