1. <i id='1HmPX'><tr id='1HmPX'><dt id='1HmPX'><q id='1HmPX'><span id='1HmPX'><b id='1HmPX'><form id='1HmPX'><ins id='1HmPX'></ins><ul id='1HmPX'></ul><sub id='1HmPX'></sub></form><legend id='1HmPX'></legend><bdo id='1HmPX'><pre id='1HmPX'><center id='1HmPX'></center></pre></bdo></b><th id='1HmPX'></th></span></q></dt></tr></i><div id='1HmPX'><tfoot id='1HmPX'></tfoot><dl id='1HmPX'><fieldset id='1HmPX'></fieldset></dl></div>
        <bdo id='1HmPX'></bdo><ul id='1HmPX'></ul>

      <small id='1HmPX'></small><noframes id='1HmPX'>

      <legend id='1HmPX'><style id='1HmPX'><dir id='1HmPX'><q id='1HmPX'></q></dir></style></legend><tfoot id='1HmPX'></tfoot>

      1. 使用 PHP 进行非常大的上传

        Very large uploads with PHP(使用 PHP 进行非常大的上传)

        <i id='v51jk'><tr id='v51jk'><dt id='v51jk'><q id='v51jk'><span id='v51jk'><b id='v51jk'><form id='v51jk'><ins id='v51jk'></ins><ul id='v51jk'></ul><sub id='v51jk'></sub></form><legend id='v51jk'></legend><bdo id='v51jk'><pre id='v51jk'><center id='v51jk'></center></pre></bdo></b><th id='v51jk'></th></span></q></dt></tr></i><div id='v51jk'><tfoot id='v51jk'></tfoot><dl id='v51jk'><fieldset id='v51jk'></fieldset></dl></div>

                <small id='v51jk'></small><noframes id='v51jk'>

                <legend id='v51jk'><style id='v51jk'><dir id='v51jk'><q id='v51jk'></q></dir></style></legend>
                <tfoot id='v51jk'></tfoot>
                  <tbody id='v51jk'></tbody>
                • <bdo id='v51jk'></bdo><ul id='v51jk'></ul>
                  本文介绍了使用 PHP 进行非常大的上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想允许将非常大的文件上传到我们的 PHP 应用程序中(数百兆 - 8 演出).然而,这有几个问题.

                  I want to allow uploads of very large files into our PHP application (hundred of megs - 8 gigs). There are a couple of problems with this however.

                  浏览器:

                  • HTML 上传的反馈很糟糕,我们需要轮询进度(这有点傻),或者根本不显示任何反馈
                  • Flash 上传器在开始上传之前将整个文件放入内存

                  服务器:

                  • PHP 强制我们设置 post_max_size,这可能导致容易被利用的 DOS 攻击.我不想全局设置此设置.
                  • 服务器还需要一些其他变量存在于 POST 变量中,例如密钥.我们希望能够立即拒绝该请求,而不是在整个文件上传之后.

                  要求:

                  • HTTP 是必须的.
                  • 我对客户端技术很灵活,只要它在浏览器中工作.
                  • PHP 不是必需的,如果有其他技术可以在 linux 环境下运行良好,那就太好了.

                  推荐答案

                  Java 小程序怎么样?这就是我们在我以前工作过的公司中必须这样做的方式.我知道小程序很糟糕,尤其是在这个时代,我们有所有可用的选项,但它们确实是解决 Web 开发中遇到的类似桌面问题的最通用的解决方案.只是需要考虑的事情.

                  How about a Java applet? That's how we had to do it at a company I previously worked for. I know applets suck, especially in this day and age with all our options available, but they really are the most versatile solution to desktop-like problems encountered in web development. Just something to consider.

                  这篇关于使用 PHP 进行非常大的上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  PHP Upload File Validation(PHP 上传文件验证)
                  PHP Error - Uploading a file(PHP 错误 - 上传文件)
                  How can I write tests for file upload in PHP?(如何在 PHP 中编写文件上传测试?)
                  php resizing image on upload rotates the image when i don#39;t want it to(php在上传时调整图像大小会在我不想要它时旋转图像)
                  How to send additional data using PLupload?(如何使用 PLupload 发送附加数据?)
                  change button text in js/ajax after mp4 =gt;mp3 conversion in php(在 php 中的 mp4 =gt;mp3 转换后更改 js/ajax 中的按钮文本)
                  <i id='g9crs'><tr id='g9crs'><dt id='g9crs'><q id='g9crs'><span id='g9crs'><b id='g9crs'><form id='g9crs'><ins id='g9crs'></ins><ul id='g9crs'></ul><sub id='g9crs'></sub></form><legend id='g9crs'></legend><bdo id='g9crs'><pre id='g9crs'><center id='g9crs'></center></pre></bdo></b><th id='g9crs'></th></span></q></dt></tr></i><div id='g9crs'><tfoot id='g9crs'></tfoot><dl id='g9crs'><fieldset id='g9crs'></fieldset></dl></div>

                  1. <legend id='g9crs'><style id='g9crs'><dir id='g9crs'><q id='g9crs'></q></dir></style></legend>

                    <small id='g9crs'></small><noframes id='g9crs'>

                      <tbody id='g9crs'></tbody>
                      <tfoot id='g9crs'></tfoot>
                        <bdo id='g9crs'></bdo><ul id='g9crs'></ul>