Php deletes a specified file from a folder. Code. thank you. do not copy it.

Source: Internet
Author: User
Php deletes a specified file in a folder. I want code, thank you, and do not want to copy, such as 111.txt and unlink ('./upload/111.txt') under the uploadfile folder. // do not copy the correct path? Can't I copy it ?, Do {echo & quot; [delete a specified file in the folder using php. Code. thank you. do not copy it.
For example, 111.txt under the uploadfile folder

------ Solution --------------------
Unlink ('./upload/111.txt'); // note that the path is correct.

What do you mean by not copying? Can't I copy it?
------ Solution --------------------
Do {
Echo "[title]: {$ sbxw ['falsename']} delete the book {$ sbxw ['id']}
";
} While ($ sbxw = mysql_fetch_array ($ SQL ));

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.