How to disable magic_quotes

You can modify different php settings for your account, using php.ini file. We recommend using our default php.ini file which is the most compatible with our servers and created specially to optimize the process of php values modification.  You can learn how to find and edit php.ini on our shared and business servers here:

1. How to edit php.ini file on shared servers with SuPHP module  

2.   How to edit php.ini on business servers with FastSGI module

 

To enable/disable magic_quotes the following code should be added to your PHP.ini file:

magic_quotes_gpc = Off

1.    Find the following section:

Put required value: from On to Off, or Off to On in the required fields and click “Save Changes”.

If your account is hosted on a shared server, the suPHP configuration directive should be added to your .htaccess file to make these settings global for the entire account. You can find step by step instruction here.

If your account is located on a business server no other modifications should be applied.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to check PHP version and configuration

Phpinfo() function is commonly used to check the current state of PHP configuration. It can also...

How to use PHP Selector

In some cases correct functioning of your website depends on PHP version installed on the...

How to switch PHP version on shared servers

Our shared servers are set up to allow each customer to choose the PHP version to use for the...

SuPHP directive for php.ini on shared servers

SuPHP (Single user PHP) is a php handler, which executes PHP scripts with the permissions of...

How to switch PHP version on business servers

Our business servers are running with FSGI module and have PHP 5.2, 5.3, 5.4, 5.5 versions...

Powered by WHMCompleteSolution