create or append to php5.ini the following settings. Comments should start with semi-colon 

magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off

Next, to verify that those settings are loaded you can create a file called i123.php and later delete it to prevent hackers seeing your hosting's settings.
Then access it from the browser. Use your browser's search functionality to look for: "magic" to
make sure that all of the 3 settings above are OFF.

<?php phpinfo(); ?>

 

Credits: 

Referral Note: When you purchase through an referral link (if any) on this page, we may earn a commission.
If you're feeling thankful, you can buy me a coffee or a beer