Bonjour à tous !
Toute nouvelle en PHP, je suis face à une erreur qui est :
Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /Applications/XAMPP/xamppfiles/htdocs/includes/functions/compatibility.php:18) in /Applications/XAMPP/xamppfiles/htdocs/includes/functions/compatibility.php on line 30
Alors, j'ai bien compris ( en cherchant sur mon ami google ) que j'avais un "do_magic_quotes_gpc" en trop, mais quand je l'enlève, cela m'affiche d'autres erreurs, notamment des problèmes de '{' qui manquent ...
Voici ma portion de code, ou cela bloque :
Merci d'avance pour votre aide, bonne fin de journée à vous =)
Toute nouvelle en PHP, je suis face à une erreur qui est :
Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /Applications/XAMPP/xamppfiles/htdocs/includes/functions/compatibility.php:18) in /Applications/XAMPP/xamppfiles/htdocs/includes/functions/compatibility.php on line 30
Alors, j'ai bien compris ( en cherchant sur mon ami google ) que j'avais un "do_magic_quotes_gpc" en trop, mais quand je l'enlève, cela m'affiche d'autres erreurs, notamment des problèmes de '{' qui manquent ...
Voici ma portion de code, ou cela bloque :
function do_magic_quotes_gpc(&$ar) {
if (!is_array($ar)) return false;
reset($ar);
while (list($key, $value) = each($ar)) {
if (is_array($ar[$key])) {
do_magic_quotes_gpc($ar[$key]);
} else {
$ar[$key] = addslashes($value);
}
}
reset($ar);
}
if (PHP_VERSION >= 4.1) {
$HTTP_GET_VARS =& $_GET;
$HTTP_POST_VARS =& $_POST;
$HTTP_COOKIE_VARS =& $_COOKIE;
$HTTP_SESSION_VARS =& $_SESSION;
$HTTP_POST_FILES =& $_FILES;
$HTTP_SERVER_VARS =& $_SERVER;
} else {
if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array();
if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array();
if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array();
}
Merci d'avance pour votre aide, bonne fin de journée à vous =)