|
Magic Quotes, Binary Data: msg#00245php.tcphp
I hate magic quotes. So, for the most part, I can (as php.net suggests) check to see if magic quotes is on, and if so, strip the slashes, then escape properly (mysql_real_escape_string in this case). But...this is not working for binary data. I get binary data from the raw http post (php://input), and then try to stick it in a blob field in a mysql table. I do to it what I mentioned above. When I get the data out, it looks fine to me, but is choked on by what needs to use it. I'm going to suggest to operations that magic quotes is required to be off...because then everything works fine. But...if I knew of another way to do this so I wouldn't have to require magic quotes be off... -- - Mike --------------------------------------------------------------------- To unsubscribe, e-mail: talk-unsubscribe-4zcLI8jJc/rYtjvyW6yDsg@xxxxxxxxxxxxxxxx Please read and follow the list guidelines: http://www.tcphp.org/mailing_list/guidelines The tcphp.org mailing list is sponsored by pajunas interactive, inc. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Managing PHP projects with Open WorkBench?: 00245, mike schrenk |
|---|---|
| Next by Date: | Web Site Screenshots: 00245, J Wynia |
| Previous by Thread: | Managing PHP projects with Open WorkBench?i: 00245, mike schrenk |
| Next by Thread: | Web Site Screenshots: 00245, J Wynia |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |