Try the function phpinfo();  It has several system variables shown.  I
think for IP it is $HostAddress.  Not sure though, it will tell you when
you do phpinfo().

Jason Pierce <[EMAIL PROTECTED]>

*********** REPLY SEPARATOR  ***********

On 10|08|2000| at 12|40 PM| Andy Judge wrote:

R>I am on an ADSL line with dynamic IP and would like to run Real Server
(am
R>running).  I don't have a dynamic DNS service but may get it in the
future.
R>However, I would like to write a PHP script to ascertain the IP address
on
R>ppp0 and then place it into the links in the HTML to specify the real
server
R>address since I run everything on the same computer.  I don't want to
change
R>the IP addresses in the HTML everytime the IP changes.  I wasn't able to
R>find anything on PHP variables to get the values needed.  Any help would
be
R>appreciated.
R>
R>Andy




Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to