Php magic reference ???????? Some time ago, when migrating the system, we found a strange problem. every time we save the data in a form, every double quotation marks in the data are escaped as \ "by default \". I haven't found the cause for most of the day, and I think it is caused by system encoding problems. Baidu, the omnipotent one, has saved me. after searching, I learned that php magic reference in php
???????? Some time ago, when migrating the system, we found a strange problem. every time we save the data in a form, every double quotation marks in the data are escaped as \ "by default \". I haven't found the cause for most of the day, and I think it is caused by system encoding problems. Baidu, the omnipotent one, saved me. after searching, I realized that php had a special setting on the apache server to handle this situation.
??????
??????? For the sake of security, the apache server will escape double quotation marks by default. if magic_quotes_gpc is set to disabled, the above problem can be solved. Alternatively, you can check whether magic_quotes_gpc is enabled in the program. If yes, use stripslashes to reverse the syntax. of course, calling this method will consume a certain amount of performance.
?
Mark:
Apache configuration: magic_quotes_gpc = off;