|
|
automatically performs addslashes() - Magic Quotes - PHP
|
Views : 397
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
If you want the add slashes operation to be performed on every form data submitted with out explicitly calling addslashes, just enable Magic Quotes in php.ini
PHP has this provision called as Magic Quotes. You can enable it by editing the php.ini file and setting the value of magic_quotes_gpc as on
set magic_quotes_gpc = on
After magic quotes is enabled [\] will be placed before every ['], ["], [\], or null on every user submitted data.
For example
<i style=color:green;>It's Yours</i> will automatically be converted to <i style=color:green;>It\'s Yours</i> even before you use $_GET or $_POST |
|
By rajesh, On - 2009-10-29 |
|
|
|