escaping - PHP script escapes special characters after switching servers, how to fix it? -


i have primitive script accepts post request (utf-8 text) , sends e-mail using ob_start(), echo, ob_get_clean , @mail.

it worked until switched servers, , text modified - special characters escaped (" becomes \", \ -> \\ , on), , there spaces around character combinations (not sure why). assume it's matter of php configuration. how can disable escaping?

i hope can out.

it seems php.ini has magic_quotes turned on

it supposed obsolete option in php not eliminated until php version 5.4.0.

http://php.net/manual/en/security.magicquotes.php

to disable it, can reconfigure php.ini like:

; magic quotes incoming get/post/cookie data. magic_quotes_gpc = off  ; magic quotes runtime-generated data, e.g. data sql, exec(), etc. magic_quotes_runtime = off  ; use sybase-style magic quotes (escape ' '' instead of \'). magic_quotes_sybase = off 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -