magic-quotes Questions

12

Solved

According to the PHP manual, in order to make code more portable, they recommend using something like the following for escaping data: if (!get_magic_quotes_gpc()) { $lastname = addslashes($_POST[...
Sirotek asked 21/10, 2008 at 0:50

1

Solved

What are the technical reasons that Magic Quotes has been removed from PHP 5.4 ? From PHP docs Performance Performance Because not every piece of escaped data is inserted into a database, ther...
Sheared asked 19/4, 2013 at 6:0

4

Solved

My server admin recently upgraded to PHP 5.3 and I'm getting a weird "bug" (or feature, as the PHP folks have it). I had mysql_real_escape_string around most of my string form data for obvious safe...
Lading asked 10/7, 2011 at 18:9

3

Solved

According to php.net I should use mysql_real_escape_string() and turn off magic quotes, because it's deprecated. So I turned it off and I used mysql_real_escape_string(), but is it enough to use i...
Zarla asked 1/2, 2011 at 13:37

1

Solved

I disabled magic_quotes in my php.ini. But I still get escaped strings in my form. Note: I'm running this in a theme in Wordpress.
Daukas asked 28/9, 2010 at 11:14

3

Solved

I am submitting a form to my MySQL database using PHP. I am sending the form data through the mysql_real_escape_string($content) function. When the entry shows up in my database (checking in phpM...
Hornback asked 17/2, 2010 at 20:23

2

Solved

As you know when Magic Quotes are ON, single quotes are escaped in values and also in keys. Most solutions to remove Magic Quotes at runtime only unescape values, not keys. I'm seeking a solution t...
Bullnecked asked 25/1, 2010 at 14:46

3

Solved

I'm totally aware of the aberration of Magic Quotes in PHP, how it is evil and I avoid them like pest, but what are magic_quotes_runtime? From php.ini: Magic quotes for runtime-generated data, ...
Rosinski asked 22/1, 2010 at 15:59

5

Solved

I'm writing a set of PHP scripts that'll be run in some different setups, some of them shared hosting with magic quotes on (the horror). Without the ability to control PHP or Apache configuration, ...
Skinhead asked 20/7, 2009 at 13:58

3

Solved

I'm writing a app that needs to be portable. I know I should disable magic quotes on the PHP configuration but in this case I don't know if I can do that, so I'm using the following code: if (get_...
Sculpturesque asked 16/1, 2010 at 14:55
1

© 2022 - 2024 — McMap. All rights reserved.