How to disable magic_quotes_gpc in phpnow

Source: Internet
Author: User
Phpnow how to disable magic_quotes_gpc I use phpnow to install a simple web page to implement SQL injection, but it is useless to change magic_quotes_gpc to off in php. ini. run the following code to always return Y:



If (get_magic_quotes_gpc ())
{
Echo 'y ';
}
Else
{
Echo 'n ';
}
?>


How to make phpnow not automatically escape


Reply to discussion (solution)

1. restart php. ini after modification
2. I don't know if phpnow will contain multiple php versions during installation. you need to check whether you have modified the current version of php. ini (phpstudy does not know if phpnow is available)

1. restart php. ini after modification
2. I don't know if phpnow will contain multiple php versions during installation. you need to check whether you have modified the current version of php. ini (phpstudy does not know if phpnow is available)


Thank you. I found the cause myself. the configuration file of my webpage is not php. ini, but another file. After I changed it, I can implement SQL injection.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.