Reputation: 1370
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.
Upvotes: 1
Views: 1275
Reputation: 522016
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.
Upvotes: 9
Reputation: 57209
You can't do this for obvious security reasons. PHP is server side only.
Upvotes: 2