magic-quotes-gpc Questions
2
I created a small PHP-script, that runs on a server with PHP 5.2.17 and the magic_quotes_gpc directive enabled.
I have no write-access to the php.ini file, and I'd like to remove all slashes from ...
Kevin asked 2/3, 2012 at 12:16
1
Solved
Following the question: With "magic quotes" disabled, why does PHP/WordPress continue to auto-escape my POST data?
In WordPress, all superglobals are escaped even if magic quotes are off...
Electromotive asked 15/4, 2014 at 19:2
13
Solved
I want to turn off PHP's magic quotes. I don't have access to php.ini.
When I tried to add php_flag magic_quotes_gpc off to my .htaccess file, I get a 500 internal server error. This is what my .h...
Dittany asked 5/2, 2009 at 17:47
5
Solved
I've seen dozens of PHP snippets that go like this:
function DB_Quote($string)
{
if (get_magic_quotes_gpc() == true)
{
$string = stripslashes($string);
}
return mysql_real_escape_string($str...
Statistical asked 4/1, 2010 at 1:11
3
Solved
I have $_POST variables incoming in from tags that have slashes on quotes. I know that magic quotes are off, and use the if (get_magic_quotes_gpc()) statement to stripslashes in case they are. Howe...
Meissen asked 28/7, 2011 at 22:48
6
Why is turning on magic_quotes_gpc in PHP considered a bad practice?
Giffin asked 9/4, 2010 at 20:1
4
Solved
Is it worth changing my code to be "more portable" and able to deal with the horror of magic quotes, or should I just make sure that it's always off via a .htaccess file?
if (get_magic_quotes_gpc(...
Baelbeer asked 16/12, 2008 at 1:57
1
© 2022 - 2024 — McMap. All rights reserved.