Rachel
Rachel

Reputation: 1370

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.

Upvotes: 1

Views: 1275

Answers (2)

deceze
deceze

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

Ben
Ben

Reputation: 57209

You can't do this for obvious security reasons. PHP is server side only.

Upvotes: 2

Related Questions