PHP: Magic Quotes

La direttiva magic_ quotes serve per risolvere con facilità il problema degli apici, molto spesso utilizzando server hosting condivisi queste funzioni sono disabilitate, ma bastano poche semplici righe per similare la stessa funzione:

 
if (!get_magic_quotes_gpc()) { 
$_GET    = array_map('addslashes', $_GET); 
$_POST   = array_map('addslashes', $_POST); 
$_COOKIE = array_map('addslashes', $_COOKIE); 
}

Articoli simili

Lascia un commento

Your email is never published nor shared. Required fields are marked *

*
*

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a