Page 2 of 2
Posted: Sun Jul 11, 2004 8:47 pm
by feyd
yeah.. should be able to just unlink the final destination..
Posted: Sun Jul 11, 2004 8:58 pm
by jonas
Code: Select all
<?php
unlink($_FILES['http://www.bolt3.com/faqs/dvdlist.txt']);
?>
So I tried this, but it doesnt delete the file out of the faqs folder on the FTP... did I write it properly
Posted: Sun Jul 11, 2004 8:59 pm
by feyd
you should probably use the localized path you used during the copy/move_uploaded_file calls...
Posted: Sun Jul 11, 2004 9:00 pm
by jonas
This is after though. Like the user is gone, they submitted the file and submission information to the DB and it's waiting to be approved (in the DB). The file is on the server.
But now the admin sees it's crap and wants to delete it via backend, so they hit delete and I want it to delete the file out of the folder.
Posted: Sun Jul 11, 2004 9:02 pm
by jonas
Also the url in $_FILES is actually $faq_url gotten from the submission in the DB.
Posted: Sun Jul 11, 2004 9:07 pm
by jonas
I used php.net and figured it out myself. Thanks for all the help!
Finished this section almost now
Now the forums. dun dun dun!