Page 1 of 1

[solved]Need some insight on magic_quotes_gpc.

PostPosted: 11. December 2011 16:38
by learningisliving
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,
:) :) :)

Re: Need some insight on magic_quotes_gpc.

PostPosted: 11. December 2011 20:46
by Altrea
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

Re: Need some insight on magic_quotes_gpc.

PostPosted: 12. December 2011 14:07
by learningisliving
Aah...now I get it...thanks for replying back Altrea
God Bless,
:) :) :)

Re: Need some insight on magic_quotes_gpc.

PostPosted: 12. December 2011 18:45
by Altrea
Great. I will mark this thread as solved :)
Have fun with XAMPP and all that stuff.

best wishes,
Altrea