note 59438 added to security.magicquotes
| From: | php-general at lists dot php dot net | Date: | Wed, 07 Dec 2005 02:09:34 +0000 |
| Subject: | note 59438 added to security.magicquotes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99661@lists.php.net to get a copy of this message | ||
You should try to avoid magic_quotes in all its flavors, use add_slashes() and strip_slashes()
instead with user input and you will save time and avoid common problems that come along.
You should know also that if your server has php suexec enabled you won't be able use php_flag
in .htaccess file to change php values like magic_quotes or register_globals. In this case you might
wanna try creating a php.ini file on the same directory as your script and add something like this:
magic_quotes_runtime=off
magic_quotes_gpc=off
magic_quotes_sybase=off
register_globals=on ; only as an example
----
Mel
http://www.webhostingjournal.net/
----
Manual Page -- http://www.php.net/manual/en/security.magicquotes.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59438
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59438&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59438&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59438&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59438&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59438&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59438&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59438&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59438&report=yes
Search -- http://master.php.net/manage/user-notes.php