Rozdział 31. Magic Quotes

Spis treści
What are Magic Quotes
Why use Magic Quotes
Why not to use Magic Quotes
Disabling Magic Quotes

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:



zamki polskie


print 'znicze 1171501859' . "\n"; print 'Przedszkole Katowice 1171501715' . "\n"; print 'Viagra 1171501574' . "\n"; print 'Ogród 1171501807' . "\n"; print 'pzu oc 1171501698' . "\n";