Re: Register_globals not working

From: Date: Wed, 09 Apr 2003 14:15:55 +0000
Subject: Re: Register_globals not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143083@lists.php.net to get a copy of this message
Something strange ... I created an .htaccess file with php_value register_globals on in it and 1. register_globals is still not working 2. master is still on and local is still off Freddy Am Mittwoch, 09.04.03 um 16:00 Uhr schrieb Leif K-Brooks:
Master value is the value set in php.ini. Local value is a setting set with something else, a .htaccess file for example. Frederic Gobin wrote:
Local value is of Master value is on (What is the difference between both ?) Freddy Am Mittwoch, 09.04.03 um 15:47 Uhr schrieb Leif K-Brooks:
When you run phpinfo(), does it say register_globals is on or off? Frederic Gobin wrote:
I did ... (The reason for "register_globals = on" : I want geeklog on my computer and geeklog needs this option ...) Freddy Am Mittwoch, 09.04.03 um 15:15 Uhr schrieb Leif K-Brooks:
Did you restart apache after changing php.ini? Frederic Gobin wrote:
Hi there, I have tried all I could, but "register_globals" doesn't work ... The php.ini contains a line with
    register_globals=on
The config file for the apache webserver has a line with
    php_value register_globals on
Here is the little test file I use : <?php
    if ($mode == "simple") {
        echo "REGISTER_GLOBALS is on";
    } else {
        phpinfo();
    }
?> If I display this file with "http://localhost/test.php", it shows me the result of phpinfo where it tells me, that register_globals is on. If I display this file with "http://localhost/test.php?mode=simple", it show me the result of phpinfo() What have I missed ? Thank you for reading this ... Freddy
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.


« previous php.general (#143083) next »