How do i enable "register_globals" ?

Status
Not open for further replies.

joandajer

New Member
Messages
198
Reaction score
0
Points
0
i wanna install some oscommerce script and the system is giving me this error: FATAL ERROR: register_globals is disabled in php.ini, please enable it!..pls help me
 

Tyler

Retired Staff
Messages
8,564
Reaction score
0
Points
0
Paste this in the end of your .htaccess file located in the root directory of your shop

<IfModule mod_php4.c>
php_value session.use_trans_sid 0
php_value register_globals 1
</IfModule>
php_flag register_globals on
 

HyDr@

New Member
Messages
268
Reaction score
0
Points
0
Why do you want to enable it? To increase risk to your site? :S
 
Last edited:

jaint

Member
Messages
174
Reaction score
0
Points
16
just edit the scripts and add this:
<?php
$variable=$_GET['variable'];
?>
This will retrieve it in the same way, ever since the big move/update - global_variables don't work without using something like the above. The code I posted will let you retrieve those values passed through the url.
 
Status
Not open for further replies.
Top