How to delete a client side file using PHP?
问题 I have a PHP app and I need to delete a client-side file. How can I achieve that? I'm new to PHP. Hope someone can help me. 回答1: You can't, browsers won't allow it, full stop. You could if you wrote a browser/ActiveX/Java plugin that has that kind of access and got the user to install it, but please don't . 回答2: You can't do this for obvious security reasons. PHP is server side only. 来源: https://stackoverflow.com/questions/4011792/how-to-delete-a-client-side-file-using-php