Topic awaiting preservation: Deleting Files (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 05-25-2002 22:33
I want to delete all the files into a folder, Weadz gave me a little script that I didn't test because i lost my HD, so i was trying with: code: <? //
code: Warning: Unlink failed (No such file or directory) in /usr/www/htdocs/artreves/deletetemp.php on line 11
|
Paranoid (IV) Inmate From: New Jersey, USA |
posted 05-25-2002 23:15
I'm not positive, but it could be a permissions problem. Check the CHMOD on the file that you are trying to delete the files from. |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 05-26-2002 07:52
Even with permissions ok......... |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 05-26-2002 09:09
You need to pass full path to the unlink() function, because your PHP script is not located in the same folder as files that you want to delete. |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 05-26-2002 09:27
Weeeeeeee! |