Jump to content

php code to delete files


gogreenbay07

Recommended Posts

We don't write code in this forum. If you want someone to write the script, post in the freelance area.

 

Why would you want to delete everything on a server? If you do that, you wouldn't be able to run your script again, since you just deleted it. If you're trying to do something malicious, nobody will write that code for you and it's against the rules of this forum.

 

Ken

Or perhaps if someone gave you a link you should click it and read it and learn.  Hmmmm...

 

I understand that, yes, you can learn from reading the code, but only if you actually understand what is being done.  Why don't you try it yourself.  Here's an assignment:

 

Write a script that will delete all files in a single folder, but not the actual folder itself.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.