Sun, Feb 25, 2001; by John Lim.
Here is a small piece of code to be placed at the beginning of each one of your scripts which will simulate magic_quote_gpc=OFF, i.e. no \ added in front of special characters in form fields.
<?php
if ((get_magic_quotes_gpc() == 1){
switch ($REQUEST_METHOD)
{
case "POST":
while (list ($key, $val) = each ($HTTP_POST_VARS)){
$$key = stripslashes($val);
}
break;
case "GET":
while (list ($key, $val) = each ($HTTP_GET_VARS)){
$$key = stripslashes($val);
}
break;
}
}
?>
cheena wrote:
Hi,
Iam not sure whether there is a set function available. but you could edit the php3.ini file. and set this parameter to On or Off
Hope this helps you
regards
cheena