You are here: Re: auto delete file after download « All PHP « IT news, forums, messages
Re: auto delete file after download

Posted by kick ass on 03/13/07 13:34

Yes I know that ;)
But it's kind a stupid to ask user to delete it for you.

Maybe if I make a form + button which when pressed starts an FTP download on
to users computer and then I can check if the FTP_GET is completed. Then the
php script deletes
that file from server.
But then, my problem would be how to invoke "menu" which gives user the
choice to
select destination on his computer for file to download (similar to the
"Save Target As..." in IE).

Any ideas??


"J.O. Aho" <user@example.net> wrote in message
news:55nhv3F264a1nU1@mid.individual.net...
> kick ass wrote:
>> Hi,
>> this is my question:
>> I have a link to some file (file.zip) on my page.
>> I would like that this file is automaticaly deleted from server after
>> user
>> downloads it.
>>
>> So, user clicks right mouse button, chooses "Save target as..." and than
>> saves it.
>> How to make script that deletes file from server after it's been
>> downloaded??
>
> If using php, you add a form+button at the page which the user has to
> press after the download has finished, this as php don't have magical
> powers to see when someone finished the download.
>
> --
>
> //Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация