Jump to content

Register Globals Setting Is Disabled.........


Recommended Posts

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

Link to comment
Share on other sites

if you are using shared hosting ie the one you pay to hold your website on that you don't own.  You will have to talk to your hosts. Some hosts allow you to add a php.ini file into your dir which changes the settings for that dir.  Also I agree with kenrbnsn try and keep away from registered globals as much as you can as they can be very risky

Link to comment
Share on other sites

I always thought OSCommerce gave you the option to have register_globals on.

 

Anyhow a quick way to compensate for it, which I am not telling you is the correct way to do it or that you should even do it.

 

But on a file that is always called add something like this:

 

<?php
if (isset($_POST)) {
    extract($_POST);
}


if (isset($_GET)) {
    extract($_GET);
}


if (isset($_COOKIE)) {
    extract($_COOKIE);
}
?>

 

Well you get the idea.

 

If that is true about oscommerce, wow. What a shitty job for an open-source solution.

 

Again, use the above code at your own risk.

Link to comment
Share on other sites

Hi

I'm running an oscommerce sight and globals on are very bad!

You should use this contrib: http://www.oscommerce.com/community/contributions,2097/category,all/search,register_globals

It changes how oscommerce works so you don't need globals on. In fact if you have them on, then oscommerce wont work. Hopefully it'll be made part of the default installation when the next version comes out.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.