The topic has been covered many times before. The short version: you can't disable magic quotes on the free hosts (if that's where your site is), you can only undo them (which should have minimal impact on response times).
PHP Code:
<?php // normal_quotes.php. Include this once in any script that needs magic quotes undone
function stripslashes_nested(&$v) {
if (is_array($v)) {
return array_map('stripslashes_nested', $v);
} else {
return $v = stripslashes($v);
}
}
if (get_magic_quotes_gpc()) {
foreach (array('_GET', '_POST', '_COOKIE', '_REQUEST') as $k) {
stripslashes_nested($GLOBALS[$k]);
}
}