Magic_Quotes

Magic_Quotes

Posted by: chowdown
Posted on: 2006-05-13 11:41:00

How do I enable this? I'm getting this message: http://www.usgaming-network.com/bans

It says Magic_Quotes for PHP isn't enabled... Yet I do not know how to enable it... I thought it would be enabled by default, but whatever....

Re: Magic_Quotes

Posted by: scjessey
Posted on: 2006-05-13 12:03:00

In reply to:

It says Magic_Quotes for PHP isn't enabled... Yet I do not know how to enable it... I thought it would be enabled by default, but whatever....


Magic Quotes is enabled when running PHP4, so you can always switch to using that. If you want to continue with PHP5 (where the option has been wisely disabled), I recommend using addslashes() and stripslashes(), and mysql_real_escape_string() for working with MySQL.

Re: Magic_Quotes

Posted by: chowdown
Posted on: 2006-05-13 12:14:00

How would I switch to PHP4?

Re: Magic_Quotes

Posted by: scjessey
Posted on: 2006-05-13 12:18:00

In reply to:

How would I switch to PHP4?


In the DreamHost control panel, select Manage Domains and then [Edit] your domain. You should see the option to switch between the two versions.

Re: Magic_Quotes

Posted by: guice
Posted on: 2006-05-13 17:27:00

magic_quotes == EVIL. They do not protect you in any shape or form. If a PHP Script requires them, I highly suggest looking for another one. Sorry, but they bad and in PHP6 that won't even be a possible option anymore (it's getting flat out removed from PHP6 not just disabled).

magic_quotes are the Devil.

Re: Magic_Quotes

Posted by: chowdown
Posted on: 2006-05-13 18:57:00

thanks

Tags: magicquotesdefaultphphttp