Disable Magic Quotes Print

  • 1

Magic Quotes is a process that automagically escapes incoming data to the PHP script.

It's preferred to code with magic quotes off and to instead escape the data at runtime, as needed. 

The default Magic Quotes settings for Paravel Solutions' Servers are as follows:

 

magic_quotes_gpc

On

magic_quotes_runtime

Off

magic_quotes_sybase

Off

 

Some scripts may require that Magic Quotes be completely disabled. 

While you cannot edit the php.ini file at the user level, you can control this option using an .htaccess file.

To do this, create or open the .htaccess file in the folder where your script is located. Add the line:


php_flag magic_quotes_gpc off 

Your script will now run with Magic Quotes set to the off position.

 


Was this answer helpful?

« Back

Powered by WHMCompleteSolution