Re: [PHP] Inserting single quotes

2007-07-07 Thread Jim Lucas
skip evans wrote: Yes, it turns out the production server did not have a php.ini file!!! I copied the php.ini-recommended file into place, and it has magic_quotes_gpc off and that did the trick. Thanks much! Skip A good thing to use though, is code that will detect if it is turned on. So

Re: [PHP] Inserting single quotes

2007-07-06 Thread skip evans
Yes, it turns out the production server did not have a php.ini file!!! I copied the php.ini-recommended file into place, and it has magic_quotes_gpc off and that did the trick. Thanks much! Skip Chris wrote: The ini setting is magic_quotes_gpc ( http://www.php.net/ref.info#ini.magic-quotes

Re: [PHP] Inserting single quotes

2007-07-06 Thread Chris
The ini setting is magic_quotes_gpc ( http://www.php.net/ref.info#ini.magic-quotes-gpc ). If that doesn't work the it's mostly like an issue in your code, make sure there aren't any differences. Chris skip evans wrote: I'm sorry, I totally misnamed the subject of this email. It's the slashes

Re: [PHP] Inserting single quotes

2007-07-06 Thread skip evans
I'm sorry, I totally misnamed the subject of this email. It's the slashes that are getting inserted, but as I said only on one server, not the other. So I don't want to change the code, if I can help it. I hope there is a setting that will prevent this from happening. Skip base64 wrote: t

[PHP] Inserting single quotes

2007-07-06 Thread skip evans
Hey all, I have the following in a text field in the database. 'u',0,'account',1 One my dev server if I update this in the database I get the same string. On my production server I get this: \'u\',0,\'account\',1 I thought setting magic_quotes=Off would disable this, but it did not. Can