Category: Programming & Design
Resolved Question
How can i turn on PHP magic_quotes_gpc setting during joomla 1.0 installation.?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.
Best Answer - Chosen by Asker
Other Answers:
- 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:
<IfModule mod_php4.c>
php_value magic_quotes_gpc 1
</IfModule>
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);
?>Source(s):
10 Years of PHP Coding
