View Single Post
  #5  
Old 06-12-2007, 12:13 PM
  shopccp's Avatar 
shopccp shopccp is offline
 

Advanced Member
  
Join Date: Oct 2006
Posts: 35
 

Default Re: ip address string?

Disregard above message. My server will not accept the above code, (getenv).

For all with the ip address not showing up - The following code will work:

Code:
{php} $ip = $_SERVER['REMOTE_ADDR']; echo "Your IP address is $ip logged for security reasons."; {/php}
__________________
X-Cart Gold v4.4.4
Apache v2.2.20
PHP v5.3.8
MySQL v5.1.56-log
Linux kernel v2.6.18-238.19.1.el5xen
Reply With Quote