This will solve the magic quotes compatibility when you create a local php.ini file.
If you can’t turn off magic quotes using the htaccess file just:
Create a text file
Rename it to ‘php.ini’
Add the lines
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
Save it to the directory/ies in which your scripts are executing.
We suggest just adding it to the public_html folder in case your server has restrictions on custom php.ini files in other locations.
Note: Most cpanel based server will work with this.