Upload large File upto 100MB using php

前端 未结 3 479
北恋
北恋 2021-01-01 08:26

I am making a file hosting website like web hosting sites (megaupload, rapidshare, mediafire etc.) using PHP (or tell me if its easy to implement in ASP.NET).

Projec

相关标签:
3条回答
  • 2021-01-01 08:47
    ini_set("memory_limit","2048M");    # 2 GB
    set_time_limit(0);          # unlimited transfer time
    
    0 讨论(0)
  • 2021-01-01 08:52

    open php.ini, find and edit directives:

    post_max_size upload_max_filesize

    0 讨论(0)
  • 2021-01-01 08:56

    Here are some previous stack overflow questions that may have the answer you're looking for https://stackoverflow.com/questions/4083100/php-uploading-large-files-fai

    upload large files using php, apache

    Here's an external site with some good advice http://www.radinks.com/upload/config.php

    If users are downloading large files from your site too you may want to direct your web server to offer compressed download. How you do that depends on your webserver and be aware that it may have negative consequences for people using older browsers like IE6.

    0 讨论(0)
提交回复
热议问题