Security
PHP Manual

Magic Quotes

Indice dei contenuti

Avviso

Questa funzionalità è DEPRECATA e RIMOSSA dal PHP 6.0.0. Fare affidamento su questa funzionalità è altamente scoraggiata.

Magic Quotes is a process that automagically escapes incoming data to the PHP script. It's preferred to code with magic quotes off and to instead escape the data at runtime, as needed.

What are Magic Quotes

When on, all ' (single-quote), " (double quote), \ (backslash) and NULL characters are escaped with a backslash automatically. This is identical to what addslashes() does.

There are three magic quote directives:


Security
PHP Manual