getting IP address of router

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Mon Feb 7 22:38:43 UTC 2005



On Mon, 7 Feb 2005, jim ruxton wrote:

>> <?
>> $domain = GetHostByName($REMOTE_ADDR);
>> print $domain;
>> ?>
> In this case what is the variable $REMOTE_ADDR ?

The script must run on a host outside your nat area (it can be a server 
in the dmz if you have one). $REMOTE_ADDR is the address of the querier 
in the cgi/php context where the php code runs.

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list