i read a few threads here about register globals on or off etc and i thought id share a few points that will make ur lives so much easier:
always assume register_globals is OFF ... it should be on a production server ... all this means is u use $_POST['varname'] instead of $varname in ur script ... not a big deal huh?
stripslashes() / addslashes() ... can be affected by server configs too so use a couple of wrapper functions like these:
function my_stripslashes($text)
{
$text = trim($text);
if (!get_magic_quotes_gpc())
return stripslashes($text);
else
return $text;
}
function my_addslashes($text)
{
$text = trim($text);
if (!get_magic_quotes_gpc())
return addslashes($text);
else
return $text;
}
and put them in a file u include in all scripts (where u keep things like db connect code etc right?)
anyways hope this helps some of u
🙂