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
Some linux distros end up with more than one php.ini file. Try running the command locate php.ini to confirm that you are working on the one and only copy. Also, after making any changes to the php configuration, you need to restart your web server.
make php file with this code : phpinfo(); save as info.php and access from browser, find location of php.ini displayed, change value of register_globals = On to Off or vice versa make sure to restart apache after editing php.ini file good luck
Or better yet, modify your code so that it doesn't relay on register globals, theres absolutely nothing good about it. It's given PHP a bad name in the past, its unsafe and makes for lazy coding. Theres a reason it's disabled by default now, I wouldn't be surprised if PHP6 totally removed that feature or bug, whatever you prefer to call it.
I don't know if you wanted to stay in suspense or not, but FYI, you're correct: PHP6 won't support register_globals at all.
echo "php_flag register_globals on" > /var/www/.htaccess this sin't php code btw... i was being a smart ass. simply put "php_flag register_globals on" without the quotes ("")... into a .htaccess file. as for php 6 supporting this crap, it ain't happening.
You should change it if you can, and if you have tried all ini files and htaccess that should affect the runtime configuration of php, then the chances are your php build is ignoring those instructions, some builds do that, and CGI binaries cannot use htaccess directives. Some scripts you can't change though, like WHMCS - this script wont even install without register_globals on, it's just down to laziness really, and the script is encoded so you can't even fix it for them. Observe : http://www.corephp.co.uk/archives/19-Prepare-for-PHP-6.html