PDA

View Full Version : Delete A File?


dniwebdesign
04-15-2005, 01:05 AM
Okay, I know you can upload a file using PHP but how about deleting a file and are there any restrictions on this.

Users that may upload something with my script may wish to delete it as well (without using a FTP Client or accessing the server except via the script). Just curious if this is actually possible.

Velox Letum
04-15-2005, 03:33 AM
It is possible to delete a file with the unlink() (http://us3.php.net/unlink) function.

odtufatih
04-18-2005, 07:53 AM
Okay, I know you can upload a file using PHP but how about deleting a file and are there any restrictions on this.

Users that may upload something with my script may wish to delete it as well (without using a FTP Client or accessing the server except via the script). Just curious if this is actually possible.


just use unlink function :thumbsup: