note 82777 added to security.magicquotes.disabling
| From: | stuart at horuskol dot co dot uk | Date: | Fri, 25 Apr 2008 08:26:31 +0000 |
| Subject: | note 82777 added to security.magicquotes.disabling | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138765@lists.php.net to get a copy of this message | ||
I have discovered that my host doesn't like either of the following directives in the .htaccess
file:
php_flag magic_quotes_gpc Off
php_value magic_quotes_gpc Off
However, there is another way to disable this setting even if you don't have access to the
server configuration - you can put a php.ini file in the directory where your scripts are with the
directive:
magic_quotes_gpc = Off
However, these does not propogate unlike .htaccess rules, so if you launch from a sub-directory,
you need the php.ini file in each directory you have as script entry points.
----
Server IP: 203.88.112.146
Probable Submitter: 121.45.7.98
----
Manual Page -- http://www.php.net/manual/en/security.magicquotes.disabling.php
Edit -- https://master.php.net/note/edit/82777
Del: integrated -- https://master.php.net/note/delete/82777/integrated
Del: useless -- https://master.php.net/note/delete/82777/useless
Del: bad code -- https://master.php.net/note/delete/82777/bad+code
Del: spam -- https://master.php.net/note/delete/82777/spam
Del: non-english -- https://master.php.net/note/delete/82777/non-english
Del: in docs -- https://master.php.net/note/delete/82777/in+docs
Del: other reasons-- https://master.php.net/note/delete/82777
Reject -- https://master.php.net/note/reject/82777
Search -- https://master.php.net/manage/user-notes.php