Auto IP update batch file
| From: | PHPWIN | Date: | Mon, 02 Oct 2000 18:01:48 +0000 |
| Subject: | Auto IP update batch file | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2896@lists.php.net to get a copy of this message | ||
Hiya
anyone know how to write a batch file
preferably in the autoexec.bat,
to find out the IP address of a machine (eg. with command winipcfg )and
output to another file(like IP.php with only one line and one variable
e.g.
<?$IP='202.156.31.77';
//$IP='localhost';
?>)
The idea is to have an auto-update of the IP address on the machine i work
at so I can update the links that include this file and use this $IP
variable.
Cheers
Xon