homepage Welcome to WebmasterWorld Guest from 54.211.231.221
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
The best way of providing file download
projectmanuk




msg:4217190
 2:51 pm on Oct 15, 2010 (gmt 0)

Hi everyone,
Good day to you all.
We have a website that is hosted on a virtual Linux server. We now have a couple of files that we would like to provide to our users for download. What's the best way of doing this? The file size is about 170MB. Someone proposed to put the files in a folder, and use .htaccess to control it so that when user click on the file url location, the download will start. Is this the best way? Are there any potential issues with this method?

Many thanks for your help in advance.
Best,
Jay

 

enigma1




msg:4217938
 1:51 pm on Oct 17, 2010 (gmt 0)

If you want to have the files available only to certain people (ex: logged in customers) then you need to provide a way for them to log-in. You wouldn't want everyone to download them and waste your b/w.

Now servers by default don't let scripts run indefinitely so there might be a timeout for that kind of file size, if you have a server script directly (eg PHP) to send the whole output to the client.
There are methods available to d/l huge files one of them is metalink.

henry0




msg:4218775
 10:34 am on Oct 19, 2010 (gmt 0)

170MB
I will first compress it.

projectmanuk




msg:4218779
 10:40 am on Oct 19, 2010 (gmt 0)

Thanks for the reply guys. The file is flash file and probably would not become much smaller by compression. Thanks for the point about timeout, I do need to check that.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved