[solved]Need some insight on magic_quotes_gpc.

Problems with the Windows version of XAMPP, questions, comments, and anything related.

[solved]Need some insight on magic_quotes_gpc.

Postby learningisliving » 11. December 2011 16:38

Hey Guys,

I've been reading this book to educate myself on PHP (This is how I got here in the first place... :)). In the first chapter, it specifically mentions about turning off
magic_quotes_gpc=off.

    1. What does magic_quotes mean here and what is its significance?
    It was set up like this in the php.ini file
    Code: Select all
    ; magic_quotes_gpc
    ;   Default Value: On
    ;   Development Value: Off
    ;   Production Value: Off

    2. Do I need to change the default value to 'Off'?
Tried searching for an answer first, but was only able to find this "http://community.apachefriends.org/f/viewtopic.php?f=16&t=42776&hilit=magic_quotes" thread.

Thanks in Advance,
:) :) :)
learningisliving
 
Posts: 3
Joined: 11. December 2011 15:11
Operating System: Windows 7

Re: Need some insight on magic_quotes_gpc.

Postby Altrea » 11. December 2011 20:46

Hi learningisliving,
learningisliving wrote:I've been reading this book to educate myself on PHP (This is how I got here in the first place... :)). In the first chapter, it specifically mentions about turning off

Maybe the first chapter should be "How does a comment look like in .ini files"

Every line in a .ini file which starts with a ; (semicolon) is a comment.
comments in your php.ini file give you explainations and examples about settings.

Code: Select all
; magic_quotes_gpc
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

So, this is just a comment block.
The correct setting is in the file too (~ line 751), but not at this place.

btw: In XAMPP 1.7.7 magic_quotes_gpc is already setted to Off by Default.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Need some insight on magic_quotes_gpc.

Postby learningisliving » 12. December 2011 14:07

Aah...now I get it...thanks for replying back Altrea
God Bless,
:) :) :)
learningisliving
 
Posts: 3
Joined: 11. December 2011 15:11
Operating System: Windows 7

Re: Need some insight on magic_quotes_gpc.

Postby Altrea » 12. December 2011 18:45

Great. I will mark this thread as solved :)
Have fun with XAMPP and all that stuff.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: intspeed and 125 guests