Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

register_globals problem


emgnt

Recommended Posts

Posted

Hi!

I am now trying to use oscommerce on php5, on php4 it works & installed fine but when I trying to install it on php5 it shows a error like:

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.

 

so, I change the .htaccess file of catalog directory to :

 

...............

....................

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

#

<IfModule mod_php4.c>

php_value session.use_trans_sid 0

php_value register_globals 1

</IfModule>

 

 

but it still no works & shows the same error.

Posted

I had the same problem and I changed the value in php.ini, not .htaccess, and it works well.

Posted

now I change my php.ini like:

 

; You should do your best to write your scripts so that they do not require

; register_globals to be on; Using form variables as globals can easily lead

; to possible security problems, if the code is not very well thought of.

; //////////////////////////register_globals = Off//////////////////////////

register_globals = On

 

 

but still show the same error

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...