I have a list of file paths I want to delete. I have placed the file path in a sandext file of the server path. For example:
files_to_be_removed.txt In the same directory, I have another file: remove.php When I run my script, there is no output. Simply, the files in the list are not being deleted. Why is it like this?
/path/to/bad/file.php / path / to / another / bad / File .php
$ handle = @ fopen ("files_to_be_removed.txt", "r"); If ($ handle) {'$ buffer = fgets (handles, $ 4096))! == wrong) {if' (unlink ($ buffer)) $ buffer 'echoed'. '; } Fclose ($ handle); }
No comments:
Post a Comment