Unlink and @ unlink in php? Some PHP files are deleted using unlink, and some PHP files are deleted using @ unlink? What are the differences between the two? Sometimes @ unlink cannot be used but unlink cannot be used. it is only used to control whether an error is output or not. sometimes @ unlink cannot be used instead. Are you sure you want? You cannot use unlink and @ unlink in php?
Some PHP files are deleted using unlink, and some PHP files are deleted using @ unlink?
What are the differences between the two?
Sometimes @ unlink cannot be used instead of unlink.
------ Solution --------------------
It's just that the control has no output error.
Sometimes @ unlink cannot be used instead of unlink.
Are you sure you want? You cannot determine how it is.
------ Solution --------------------
Sometimes @ unlink cannot be used instead of unlink.
What is wrong?
------ Solution --------------------
Sometimes @ unlink cannot be used instead of unlink.
The opposite! It should be
Sometimes @ unlink is used, but unlink is not used.
Take a closer look ?!
@ Block error output
When deleting a non-existing or read-only file, an error is reported.
@: I won't tell you if something goes wrong! Lie to you, don't discuss
------ Solution --------------------
An error occurs when a file is deleted. for example, when the security software scans a file, it is easy to delete it because it is occupied,
Therefore, it is normal that one deletion fails.
However, there must be countermeasures. for example, if the deletion fails three times and the deletion fails three times, the deletion may fail.
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.