Posted by Chris Hope on 11/21/31 11:20
Fred Atkinson wrote:
>>What do you think the difference between the webserver and the host
>>is? I would think they are one and the same.
>>
>>$_SERVER['SERVER_ADDR'] will give you IP address of the server the
>>script is running on.
>
> You're right. What I meant was client, not host. I want a
> PHP function that returns the IP address of the Webserver rather than
> the client machine.
$_SERVER['SERVER_ADDR'] gives you the server
$_SERVER['REMOTE_ADDR'] gives you the client
--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Navigation:
[Reply to this message]
|