Re: Variables not passed on localhost setup

From: Date: Wed, 01 Oct 2003 16:56:37 +0000
Subject: Re: Variables not passed on localhost setup
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-164579@lists.php.net to get a copy of this message
Reply - this means your php is running on php defaults configuration. you need to copy the 'php.ini-dist' file as 'php.ini' to c:\windows. edit the the file 'C:\windows\php.ini' and change register_globals = Off to register_globals = On Greg Watson wrote:
Thank you for that answer! That worked perfectly! That leads me to another query, again, which I have searched for... I'd like to be able to switch Register_Globals ON, but I can't find my php.ini file. Running phpinfo(); tells me that my 'php.ini' file is stored in C:\WINDOWS, but it's not there. I've ran a file search and still can't find it. The only ones that appear are 'php.ini-dist' and 'php.ini-recommended' which live in the installation directory. I followed a tutorial to install PHP, which didn't say anything about specifying whether you have a php.ini file or not. Any clue as to why I don't have one, and how I should get one? I installed PHP v4.3.3 on Apache 1.3. Thank you again for your time, I appreciate it. Greg Watson CPT John W. Holmes wrote:
From: "Greg Watson" <greg@sportbrain.com>
doesn't look as though variables are being passed from page to page.
Register_globals is OFF in your php.ini file, so you need to use $_GET['testvar'] instead of $testvar. ---John Holmes...


« previous php.general (#164579) next »