Re: Auto IP update batch file

From: Date: Mon, 02 Oct 2000 21:58:59 +0000
Subject: Re: Auto IP update batch file
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-2899@lists.php.net to get a copy of this message
XON: I'm not sure if this is what you want, but you can get the IP address of the machine in which PHP is running like this: $IP = $SERVER_ADDR; also, you can get the client's IP address: $IP = $REMOTE_ADDR; Hope this helps. Saludos, Pablo Vera _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Monday, October 02, 2000, 1:01:48 PM, XON wrote: P> Hiya P> anyone know how to write a batch file P> preferably in the autoexec.bat, P> to find out the IP address of a machine (eg. with command winipcfg )and P> output to another file(like IP.php with only one line and one variable P> e.g. P> <?$IP='202.156.31.77'; P> //$IP='localhost'; P> ?>) P> The idea is to have an auto-update of the IP address on the machine i work P> at so I can update the links that include this file and use this $IP P> variable. P> Cheers P> Xon

« previous php.windows (#2899) next »