artcoder Posted January 11, 2007 Share Posted January 11, 2007 I'm trying to install the register_globals patch and saw that the last contrubitions added the .htaccess file that contains the following content... php_flag register_globals on What is the purpose of this? And can the patch work without me installing the .htaccess file? Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 11, 2007 Share Posted January 11, 2007 Adding that to your .htaccess file allows the shop to continue working as it is. Once the register globals contribution is installed, you don't need that setting. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
artcoder Posted January 12, 2007 Author Share Posted January 12, 2007 So I put that in my .htaccess just before I install the contribution? And then remove it right after the contribution is installed successfully? Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 12, 2007 Share Posted January 12, 2007 No, it's an either/or situation. Either put it in your .htaccess file and run as your shop is or leave it out and install the contribution. The problem is that oscommerce uses a method where the variables are termed "global," which means they are common to all parts of the shop. That creates a security risk. The register globals option has to be on for that to work, which is what the .htaccess change does. The register gloabls contribution changes the code so that the variables are no longer a security risk. It is the better way to go but requires more work. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
♥Vger Posted January 12, 2007 Share Posted January 12, 2007 Be aware, if you install the Register Globals patch, that most osCommerce contributions are not written to work with Register Globals off. Vger Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.