Deleting a file after download/upload
| From: | Parham Doustdar | Date: | Tue, 23 Jun 2009 19:32:44 +0000 |
| Subject: | Deleting a file after download/upload | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-294468@lists.php.net to get a copy of this message | ||
Hi there,
I am writing a PHP FTP client for my project. I want to put a "download" option and an
"upload"" option, but I don't know how. My problem is this:
How can I make the server the PHP script is on delete the file after uploading it to the SFTP, or
after the user has finished downloading it from the server the PHP script is on?
Let me put the question this way.
My server connects to an FTP. Then, it downloads a file from the FTP, and then sends me the link to
that temperary file on the server. Now, when I download it from my server, my script should delete
the file. How can I make it wait until the download of the file is finished?
Same goes for uploading.
Thanks!
--
---
Contact info:
Skype: parham-d
MSN: fire_lizard16 at hotmail dot com
email: parham90 at GMail dot com