Re: newbie - PHP escaping trigger happy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx 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.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux