Deleting a file after download/upload

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux