Page 1 of 1

upload & download file

Posted: Thu Oct 22, 2009 1:47 am
by myasirm
hi guys
i have created five folders in one drive names of folders(Weaving,Spinning,.....) through if condition i handled that if user check the spinning department its data will be saved in spinning folder now problem is that how can i restrict one user that he can only download the data from spinning department not from other and kindly tell me what is the code for downloading in php

thanks in advance waiting for your replies guys

Re: upload & download file

Posted: Thu Oct 22, 2009 7:49 am
by markusn00b
You will generally force a download through PHP by setting the content-type header and then using readfile()

However, are you wanting to download the entire folder in one download?