[PHP] Escape Characters

2003-02-27 Thread Sysadmin
Hi All, I'm running a script that reads the contents of images and stores them in a MySQL database. The problem I'm running into is that my server is seeing \ as escape characters and stripping them out. I assume this has something to do with Magic Quotes or something of that nature but I'm

Re: [PHP] Escape Characters

2003-02-27 Thread 1LT John W. Holmes
I'm running a script that reads the contents of images and stores them in a MySQL database. The problem I'm running into is that my server is seeing \ as escape characters and stripping them out. I assume this has something to do with Magic Quotes or something of that nature but I'm not

[PHP] Escape characters won't go away

2002-09-01 Thread Mike Mannakee
I'm getting multiple backslashes in data I get out of a mysql database. Example : ...Here\\\'s the d... No problem. Except I CANT GET RID OF THEM. I've tried several things: 1. $string = stripslashes($string); - Doesn't do anything 2. $string = ereg_replace(\\, , $string); - Doesn't

Re: [PHP] Escape characters won't go away

2002-09-01 Thread Justin French
on 02/09/02 1:14 PM, Mike Mannakee ([EMAIL PROTECTED]) wrote: I'm getting multiple backslashes in data I get out of a mysql database. Example : ...Here\\\'s the d... No problem. Except I CANT GET RID OF THEM. I've tried several things: 1. $string = stripslashes($string); -

Re: [PHP] Escape characters won't go away

2002-09-01 Thread Mike Mannakee
Thanks. I just figured it out myself. I had to change the expression: $string= ereg_replace([\\]+, , $string); The above is what worked. Mike Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... on 02/09/02 1:14 PM, Mike Mannakee ([EMAIL

[PHP] escape characters

2002-04-03 Thread Rob Packer
In the following statement, can someone tell me what I would need to escape out if I were to put it all into a variable (I know the quotes, but that's all) : if (!$name){ $error_msg.=Your Name \n; } Thanks, Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] escape characters

2001-04-06 Thread Adam
what is a list of all the characters that have to be escaped? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] escape characters

2001-04-06 Thread Adam
nevermind, i found them -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]