How Can I Turn On Php Magic_quotes_gpc Setting During Joomla 1.0 Installation.?
January 26, 2010 under FAQ
how can i turn on PHP magic_quotes_gpc setting, during joomla 1.0 installation. whereas XAMPP is already installed on my machine. if u can help me so please send me complete path/command.
Search more about How Can I Turn On Php Magic_quotes_gpc Setting During Joomla 1.0 Installation.?:




You go into the php.ini file and turn it on.
Have you got access to php.ini? If so then change these in the file to:
magic_quotes_gpc = On
magic_quotes_runtime = On
If you are in a shared environment, you may need to contact your hosting provider.
You may be able to change it via an .htaccess in the same directory as your php script files:
Content of .htaccess:
php_value magic_quotes_gpc 1
Another option might be to use the iniset() function in the php script file itself (this may or may not work depending on your hosting environment)
PHP Syntax:
< ?php
ini_set ('magic_quotes_gpc', 1);
?>
If you have access to php.ini
set the
magic_quotes_gpc directive to On
magic_quotes_runtime=on
If you don’t have access to php.ini
ini_set(’magic_quotes_gpc’, 1); in your code