Ask Daniel on the win system PHP call system command Delete directory

Source: Internet
Author: User
Ask Daniel in the win system PHP call system command Delete directory
What is this command? is to forcibly delete the directory directory variable to $dir
Tried the system (' del '. $dir); I found out that nothing was missing. It's not a good command, but test this command to delete the file directory.

Replace with system (' Rd '. $dir); Or not.
System (' RM '. $dir "); Not yet
System (' RmDir '. $dir "); Not much.

Desperate to teach a place Daniel give me a win environment PHP calls the system command to force the deletion of the Directory folder statement or command kneel Shei a good man's life is safe!



------Solution--------------------
Cmd del ...

But this will have permission issues.

The other is the Windows Unicode file name in php5, Php6 so far seems to have not completely breached the problem
If there is such a requirement, it can only be deleted by file list
  • 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.