please help me solve this problem php_value magic_quotes_gpc 0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • khan
    replied
    In ur core or that page which is connected in every page.

    Leave a comment:


  • andrew3008
    replied
    Originally posted by something else View Post
    You can add:
    PHP Code:
    ini_set( 'magic_quotes_gpc', 0 ); 
    
    in your script

    if that doesnt work code round it eg:
    PHP Code:
    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

    Leave a comment:


  • something else
    replied
    You can add:
    PHP Code:
    ini_set( 'magic_quotes_gpc', 0 ); 
    
    in your script

    if that doesnt work code round it eg:
    PHP Code:
    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 );
    } 
    
    Last edited by something else; 24.04.11, 14:18.

    Leave a comment:


  • andrew3008
    replied
    tried internal server error 500 mate is thr any other solution

    Leave a comment:


  • s3nzo
    replied
    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

    Leave a comment:


  • please help me solve this problem php_value magic_quotes_gpc 0

    please any one help me how to solve this problem


    php_value magic_quotes_gpc 0


    how toadd in .htaccess root
Working...
X