Re: newbie - PHP escaping trigger happy
| From: | Govinda | Date: | Tue, 02 Sep 2008 23:12:18 +0000 |
| Subject: | Re: newbie - PHP escaping trigger happy | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279359@lists.php.net to get a copy of this message | ||
You guys got me on the right track, but:
On my Mac OS10.5.4/Apache2/webmin local (dev) setup (of which I know very little) I managed to find "php.ini.default", make a copy while renaming to "php.ini", open the copy (php.ini), and change that "on" to an "off" (the only one of the 3 that was on). So now in that file, here is what I have:
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off
; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off
; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off
I go into webmin --> PHP and 'hand-edit' the PHP config file to convince myself that what I did should be recognized by Apache/PHP, and the textarea contents match.
Sooooo, WHY is php still escaping my quotes?
-Govinda
On Sep 2, 2008, at 10:36 AM, seungp@gmail.com wrote:
IIRC. That's covered under magic quotes . You should be able to turn that off via a config switch in php.ini or .htaccess.