homepage Welcome to WebmasterWorld Guest from 54.196.63.93
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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

5+ Year Member



 
Msg#: 4217188 posted 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

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4217188 posted 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

WebmasterWorld Senior Member henry0 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4217188 posted 10:34 am on Oct 19, 2010 (gmt 0)

170MB
I will first compress it.

projectmanuk

5+ Year Member



 
Msg#: 4217188 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved