gogreenbay07 Posted June 4, 2010 Share Posted June 4, 2010 I do not know anything about php but I was wondering if somebody could please write the code that when I go to a url like http://www.mysite.com/code.php that it would delete everything on the server. Quote Link to comment https://forums.phpfreaks.com/topic/203821-php-code-to-delete-files/ Share on other sites More sharing options...
kenrbnsn Posted June 4, 2010 Share Posted June 4, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/203821-php-code-to-delete-files/#findComment-1067494 Share on other sites More sharing options...
gogreenbay07 Posted June 4, 2010 Author Share Posted June 4, 2010 No this is just my own server that I have full access to. I was just wondering if somebody could write this code for me. If this is in the wrong section could an admin please move it to the correct one Quote Link to comment https://forums.phpfreaks.com/topic/203821-php-code-to-delete-files/#findComment-1067500 Share on other sites More sharing options...
HaLo2FrEeEk Posted June 4, 2010 Share Posted June 4, 2010 Next time try googling. And don't expect anyone to write you code, that's way presumptious...especially when you're asking people to write code to delete all files on a server. The whole point of this forum is to learn. Quote Link to comment https://forums.phpfreaks.com/topic/203821-php-code-to-delete-files/#findComment-1067510 Share on other sites More sharing options...
gogreenbay07 Posted June 4, 2010 Author Share Posted June 4, 2010 If somebody wrote the code I could look at it and learn. Quote Link to comment https://forums.phpfreaks.com/topic/203821-php-code-to-delete-files/#findComment-1067511 Share on other sites More sharing options...
HaLo2FrEeEk Posted June 4, 2010 Share Posted June 4, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/203821-php-code-to-delete-files/#findComment-1067842 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.