emgnt Posted April 1, 2006 Posted April 1, 2006 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.
mlp Posted April 1, 2006 Posted April 1, 2006 I had the same problem and I changed the value in php.ini, not .htaccess, and it works well.
emgnt Posted April 1, 2006 Author Posted April 1, 2006 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
emgnt Posted April 1, 2006 Author Posted April 1, 2006 Problem Solved after restartting web server, thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.