Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果文件名中有 &,我无法使用 php 取消链接文件。
unlink('../mydoc/in&out.pdf');
错误说:没有这样的文件或目录
您应该转义特殊字符。
unlink('../mydoc/in\&out.pdf');
您需要提供文件的完整路径。