upload & download file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
myasirm
Forum Commoner
Posts: 54
Joined: Sat Sep 12, 2009 3:57 am

upload & download file

Post 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
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Re: upload & download file

Post 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?
Post Reply