Limited Time Offer - from RM2.99/month
00
DAYS
01
HOURS
12
MINUTES
28
SECONDS
Get Started
×

Knowledge base

Find information within our custom articles about Hostinger's features
and all information relating to hosting practices.

How to disable magic quotes? (by using .htaccess)

Modified on:
magic quote magic_quotes_gpc magic_quotes

The magic_quotes_gpc directive can be disabled by adding this line to your .htaccess file in the directory, where you want the magic_quotes disabled:

php_flag magic_quotes_gpc off

.htaccess file is located in your public_html folder, on your FTP.

  • Free Website Builder
  • 99.9% Uptime Guarantee
  • 24/7 Live Support
  • Powerful Control Panel
  • 30-Days Money-Back Guarantee
Limited Time Special Offer!
From
RM
2
99
/mo
Save 90%
Let's go!