-- mothmenace <[EMAIL PROTECTED]> wrote (on Wednesday, 17 September 2008, 10:22 AM -0700): > I was caught out by $row->save(); adding extra slashes to my db fields, due > to magic_quotes_gpc being on. I understand the correct solution is to turn > off gpc_quotes? (I chose: > php_flag magic_quotes_gpc Off > in an .htaccess) > > However, magic_quotes = on is the default setting for php ini I believe.
Um... no, it hasn't been for a *long* time now. > Would it not be better for $row->save(); to automatically check the status > of magic_quotes and add quotes only where necessary? No. Use the recommended php.ini, which has magic quotes turned off, or turn it off in .htaccess. This is a PHP issue, not a ZF one. > Just a curious observation, I am only skimming the surface of ZF at this > stage. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
