3.3.3 How to disable magic quotes Magic Quotes Gpc

If PHP is set to CGI mode for the WWW domain:

  • Log in as a user to the file manager in the php-bin folder.
  • Set permissions to 600 for the php.ini file.
  • Add the following lines to php.ini:
php.ini
  magic_quotes_gpc = Off
  magic_quotes_runtime = Off
  magic_quotes_sybase = Off

If PHP is enabled as an Apache module for the WWW domain, then add the following lines to the www/domain_name/.htaccess file:

.htaccess
  php_flag magic_quotes_gpc Off
  php_flag magic_quotes_runtime Off
  php_flag magic_quotes_sybase Off