The problem of renaming directories under PHP failed

Source: Internet
Author: User
Environment win7, server IIS, just discovered

 
 

Use mkdir to create a folder, but rename cannot rename the directory (file renaming can), the other rmdir seems to have no effect.
Don't know what the problem is? Permissions? Or a grammatical error?

Reply content:

Environment win7, server IIS, just discovered

 
 

Use mkdir to create a folder, but rename cannot rename the directory (file renaming can), the other rmdir seems to have no effect.
Don't know what the problem is? Permissions? Or a grammatical error?

The problem is with permissions, the folder does not modify the permissions for the user, and therefore returns false after the function executes. The workaround that I use is to directly set the permissions of the entire parent folder to the user as modifiable, and then you can. ...... But I have a little question, so does setting up security come with it? ...... Ask yourself, uh.

  • 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.