Is it possibel to enable magic_quotes_gpc for php through the htaccess file? If so how? TIA
SiteOptions >> Services :: Products :: Contact Developers of PHP, C++, Visual Basic, MySQL, and more!
Don't quote me on this, but I believe this would work: php_value magic_quotes_gpc 1 Also, you can (IIRC) set it in your code with: if(set_magic_quotes_runtime(1)) { echo "Set MQR!"; } else { echo "Error setting MQR."; } It might just be magic_quotes_runtime. I'm a bit rusty.
Is there a specific reason why you need to use .htaccess to do this? You could try ini_alter("magic_quotes_gpc","On|Off"); at the start of your code, which will alter PHP.INI temporarily while the script runs. Hope that helps.
Forum Rules
Bookmarks