How to delete a client side file using PHP?

混江龙づ霸主 提交于 2019-12-14 04:00:01

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!