Hello all here's one for you.
I need to get the server_addr global variable. Sounds easy, but here's the kicker, I'm on IIS and as I understand it, this variable is not available. How do I get the IP Address of the server?
Server IP Address
Moderator: General Moderators
- akimm
- Forum Contributor
- Posts: 460
- Joined: Thu Apr 27, 2006 10:50 am
- Location: Ypsilanti Michigan, formally Clipsburgh
like the previous poster alluded to,
Code: Select all
<?php
$SERVER['REMOTE_ADDR'];
##or
getenv("SERVER_NAME");
?>