Hi, I don't know how to use unlink() delete file,could you help me.
Thanks
All you have to do is:
unlink("file.txt");
If it dosen't work, you may need to change the file to a nobody, but I'm not sure how to do that.
Hi, I try to use unlink() delete a file, but show a error: Warning: Unlink failed (Operation not permitted) in /usr/local/apache/phproot/delfile.phtml on line 20
so, not delete file yet.
OK, you need to change the file permissions to nobody. To do this insert:
chmod ("file.txt", 0666); unlink ("file.txt");
This should do the trick, but if it dosen't then I don't know what else to do.
i am trying to have the file deleted after you click a button that displays it, any idea how to have it wait until the button is pressed until it is deleted?
test