Guest Posted January 19, 2006 Posted January 19, 2006 My ISP tells me I must leave register_global Off in my php.ini file. How do I change my .htaccess file in the 'catalog' directory to by-pass this? Also, i just looked in the php.ini file and it says near the register_globals directive ; 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, What gives?
Guest Posted January 19, 2006 Posted January 19, 2006 First, your host will have to allow you to do .htaccess, some don't. A search of the forum should reveal the necessary changes. Alternatively, you could use the Register Globals patch that both Richard and Vger have worked on. If you are still using the default osC and haven't modified anything, I'd suggest Vger's version since it's a "replace and go" contribution. If you have made changes, then try Richard's
♥Vger Posted January 19, 2006 Posted January 19, 2006 My ISP tells me I must leave register_global Off in my php.ini file. How do I change my .htaccess file in the 'catalog' directory to by-pass this? If your ISP has told you that and you use .htaccess to turn them on again then your ISP may well shut down your site if they find out what you have done. Vger
Recommended Posts
Archived
This topic is now archived and is closed to further replies.