Error uploading file name after Magic_quotes_gpc=on = = Solve

Source: Internet
Author: User
Both are replaced by single quotation marks. Now for convenience you want to open MAGIC_QUOTES_GPC directly. There is a problem after opening. The first letter of the uploaded file name was swallowed.
vardump See file name problem, others are normal
Dmytro Tolkunov-photo.jpg became Mytro tolkunov-photo.jpg. I don't know why.


Reply to discussion (solution)

I more believe is your code problem, you can Var_dump ($_post, $_files); A look at what

php5.4 has given up the MAGIC_QUOTES_GPC switch.
php5.3 is also closed.

If you have to open your own, then the consequences are, of course, "ego".

I more believe is your code problem, you can Var_dump ($_post, $_files); A look at what

I'll just have to use both quotes or real_escape. There's something wrong with the wood.

I more believe is your code problem, you can Var_dump ($_post, $_files); A look at what

Got it.. If I had upgraded PHP before, it wouldn't have been so much trouble.

  • Related Article

    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.