Click to See Complete Forum and Search --> : My IP


jacno
08-09-2003, 03:35 AM
Hello
I need to get in a $var, my dynamic IP
(not the page web visitor's IP).
This IP is provided by my web access provider,
and I can see this IP in my XP os IpConfig.
For example can I put the text of IpConfig in
a file.txt of the HD of my server ?
Anticipate thanks Jack

Exuro
08-10-2003, 07:48 PM
Try using $_SERVER['HTTP_HOST'] to get your IP address.

jacno
08-11-2003, 08:47 AM
thanks for answering,but with
$_SERVER['HTTP_HOST']
I get the visitor IP not my IP.

My IP (not fixed)s only in IPConfig :
-how can I execute IpConfig with php ?
-how can I get the tesult of the execution in a server file or in a php $var ?
my os is XP
cordially Jack
:)

Exuro
08-11-2003, 04:10 PM
On my server that gives the server's IP address... I'm running Apache2, so it may be different for other server programs... But, I'd double-check if I were you.