Dear members,

please help me.

i am getting register_globals setting disabled warning.

i have attached a .htaccess file with my catalog folder, i have also attached php.ini file with my catalog folder.

my .htaccess file has code given below

<IfModule mod_php4.c>
php_value include_path ".:/usr/local/lib/php"
php_admin_flag safe_mode on
php_value register_globals on
</IfModule>

my php.ini file have code given below

register_globals = ON

i have done a lot of afforts. i have read existing topics on same problem and try for solution. but my problem is still same. i need urgent help please

Thanks in advance
madhukar garg

    madhukar_garg wrote:

    i have read existing topics on same problem and try for solution.

    I think you're mixing up terms here.

    The "solution" to your problem is to fix your code so that it's not insecure and doesn't rely on highly deprecated (and obviously disabled and therefore unreliable) mechanisms that countless security articles have put to shame.

    The "workaround" (e.g. avoiding the problem) would be to find a way to turn register_globals back on (or emulate its behavior, such as using [man]extract/man on the $_REQUEST array).

    EDIT: Now that I re-read your first post, I have to wonder... can you paste this warning to us? Are you sure the warning isn't saying that register_globals has been detected and that the script is warning you to turn it off ?

      sorry for my mistake its an error not warning:

      i am using oscommerce 2.2 and it need to register_globals on.

      "Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory".

        Did you reset the apache/php/mysql service after changing the php.ini?

          Write a Reply...