please any one help me how to solve this problem
php_value magic_quotes_gpc 0
how toadd in .htaccess root
Started on the old forum in April 2011 · view the original in the archive · old links redirect here
please any one help me how to solve this problem
php_value magic_quotes_gpc 0
how toadd in .htaccess root
If you have access to your .htaccess you can just open it and add what you want to add, if you are on paid hosting but you can't see .htaccess on the main page on cpanel click on "reset all interfaces" then maybe you will see .htaccess on file manager
You can add:
ini_set( 'magic_quotes_gpc', 0 );
in your script
if that doesnt work code round it eg:
if ( in_array( strtolower( ini_get( 'magic_quotes_gpc' ) ), array( '1', 'on' ) ) )
{
$_POST = array_map( 'stripslashes', $_POST );
$_GET = array_map( 'stripslashes', $_GET );
$_COOKIE = array_map( 'stripslashes', $_COOKIE );
}
something else wrote: You can add:
ini_set( 'magic_quotes_gpc', 0 );in your script
if that doesnt work code round it eg:
if ( in_array( strtolower( ini_get( 'magic_quotes_gpc' ) ), array( '1', 'on' ) ) ) { $_POST = array_map( 'stripslashes', $_POST ); $_GET = array_map( 'stripslashes', $_GET ); $_COOKIE = array_map( 'stripslashes', $_COOKIE ); }
but in which php file i addd
In ur core or that page which is connected in every page.