Re: Pre-defined vars not working

From: Date: Tue, 12 Feb 2002 07:10:41 +0000
Subject: Re: Pre-defined vars not working
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-5992@lists.php.net to get a copy of this message
C0p0n wrote:
The thing is that I reinstalled win2k, so I did with apache, mysql, php 4.1.1 the same.
<? echo "<br>Nombre del servidor: <b> $SERVER_NAME </b>"; echo "<br>Versión de CGI: <b> $GATEWAY_INTERFACE </b>"; echo "<br>Software del server: <b> $SERVER_SOFTWARE </b>"; echo "<br>URL referida: <b> $HTTP_REFERER </b>"; echo "<br>IP del cliente: <b> $REMOTE_ADDR </b>"; ?>
Register globals are no longer recommended and it will be off by default from PHP 4.2. Use track vars. $_SERVER for example. -- Yasuo Ohgaki

« previous php.install (#5992) next »