please help me solve this problem php_value magic_quotes_gpc 0

Started on the old forum in April 2011 · view the original in the archive · old links redirect here

5 replies · 856 views · started 15 years ago · 1 min read

4 participants
andrew3008 Developer · 102 posts #1

please any one help me how to solve this problem

php_value magic_quotes_gpc 0

how toadd in .htaccess root

s3nzo Developer · 156 posts #2

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

andrew3008 Developer · 102 posts #3

tried internal server error 500 mate is thr any other solution

something else Fellow · 2,296 posts #4

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 );
}
andrew3008 Developer · 102 posts #5

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

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close