I'm trying to create a link, so when the user clicks the link it will delete a file from a directory.
I've been messing around with the unload command with no success.
This is so a member can download a text database file. Then I need them to click the delete database link so that the database file gets deleted, so when new information is sent, a new database is created.
All I need to know is how to delete a file from my server by clicking a link.
Thanks
clicking a link to delete a file
Moderator: General Moderators
this link will help you out fopen http://za2.php.net/manual/en/function.fopen.php
use fopen to open to that dir and then delete the file.
Hope this helps
use fopen to open to that dir and then delete the file.
Hope this helps
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact: