Re: problems with environment variables

From: Date: Mon, 28 Jul 2003 20:28:52 +0000
Subject: Re: problems with environment variables
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-11353@lists.php.net to get a copy of this message
George L. Yermulnik wrote: > I've got FreeBSD 4.8 Stable, Apache/1.3.27 (Unix) mod_throttle/3.1.2 > PHP/4.3.3RC1 rus/PL30.17 and PHP 4.3.3RC1 > > It's a newly installed server with a lot of virtual hosts using > environment variables like $REQUEST_URI in php scripts. > > The problem is that PHP doesn't show those variables, saying "Notice: > Undefined variable: REQUEST_URI in ..." > > register_globals in /usr/local/etc/php.ini is On Please make sure that /usr/local/etc/php.ini is indeed the php.ini that is used by your PHP. To find out, you can write a PHP script with the line: <?php phpinfo(); ?> and put that file on your web server and look at it with a browser. The output should have an entry "Configuration File (php.ini) Path". Regards... Michael

« previous php.install (#11353) next »