PHP uploading large files with HTTP or TCP/IP protocol is better

Source: Internet
Author: User
Tags php sample code
In PHP using the HTTP protocol default upload size of 2M files, if uploading video and other large files or using the HTTP protocol and upload the usual small files or based on the TCP/IP protocol in other languages to develop a separate upload client, please give advice, thank you!









Reply to discussion (solution)



I don't quite understand how large files are handled in PHP uploads.
Can you use JS to develop a socket client to implement?



The default is 2m, you can change the big ah.



It can be bigger, but it's not the right way to feel.



can consider this link



In PHP using the HTTP protocol default upload size of 2M files, if uploading video and other large files or using the HTTP protocol and upload the usual small files or based on the TCP/IP protocol in other languages to develop a separate upload client, please give advice, thank you! You can use the HTTP protocol. Like Youku, the big attachments in QQ mailbox upload, Baidu network disk, dbank, network disk, 115 network disk, they are all using the HTTP protocol, but they are self-opened control to do this thing. Normal HTML is definitely not going to work.



In PHP using the HTTP protocol default upload size of 2M files, if uploading video and other large files or using the HTTP protocol and upload the usual small files or based on the TCP/IP protocol in other languages to develop a separate upload client, please give advice, thank you! Larger files are typically made with specialized controls, based on the HTTP protocol. This is the best user experience. Controls like this are already on the web and you can search.



using the HTTP protocol in PHP, the default upload size of 2M files, if uploading video and other large files or using the HTTP protocol with the same as uploading ordinary small files or based on tcp/ IP protocol in other languages to develop a separate upload client, please give advice, thank you! There is a Web file upload breakpoint extension on the Internet: http://www.cnblogs.com/xproer/archive/2012/10/26/2741264.html
This control supports the continuation of a breakpoint on a 100G file, Provide complete development documentation, support file MD5 verification, support file batch upload.
Browser support: Internet Explorer 6,internet Explorer 7,internet Explorer 8,internet Explorer 9
Maxthon (roaming) 1.x,maxthon (roaming 2.x,tt Browser, QQ browser,  Security browser,
Chrome (Google browser), maxthon3.x, browser 6.x,firefox
paste files, simplify the selection of file operations:

File MD5 value calculation progress:

File MD5 value is calculated

Server detects the existence of the same file based on MD5

Continue file

Load file list from server

file crosses

file upload complete

Upload folder

and discuz! X2 Integration-Background installation breakpoint continuation control

and discuz! X2 Integration-Background Enable breakpoint continuation control

and discuz! X2 Integration-Background breakpoint continuation control enabled successfully

and discuz! X2 Integration-Front desk Posting page

and discuz! X2 Integration-Upload


page Invoke sample code:


 
  HTTP breakpoint continuation control and MySQL database Demo page (UTF-8)

Resources Download:
CAB installation package (x86)
CAB installation package (x64)
CRX installation Package
XPI installation Package
EXE installation package
Development documentation
Upgrade Log
The ASP. NET (C #) sample code:
asp.net-access Example
asp.net-sql2005 Example
JSP Sample code:
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sqlserver2005-utf8 Example
Jsp-mysql-utf8 Example
PHP Sample code:
Php-mysql-utf8 Example
Chrome,firefox,ie Breakpoint Continuation Control Example (the following example has integrated the plug-in for the Ie32,ie64,firefox,chrome platform)
asp.net-access Example
asp.net-sql2005 Example
JSP Sample code:
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sqlserver2005-utf8 Example
Jsp-mysql-utf8 Example
PHP Sample code:
Php-mysql-utf8 Example

Chrome,firefox,ie Breakpoint Continuation Control Example (the following example has integrated IE (x86), IE (x64), Firefox,chrome Platform plug-in)
asp.net-access Example
asp.net-sql2005 Example
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sql2005-utf8 Example
Jsp-mysql-utf8 Example
Php-mysql-utf8 Example






In PHP using the HTTP protocol default upload size of 2M files, if uploading video and other large files or using the HTTP protocol and upload the usual small files or based on the TCP/IP protocol in other languages to develop a separate upload client, please give advice, thank you! Xproer.httpuploader5:http://www.cnblogs.com/xproer/archive/2012/10/26/2741264.html
This control supports 100G file's breakpoint continuation operation, provides complete development documentation, supports file MD5 verification, and supports file bulk upload.
Browser support: Internet Explorer 6,internet Explorer 7,internet Explorer 8,internet Explorer 9


The page invokes the sample code:


 
  HTTP breakpoint continuation control and MySQL database Demo page (UTF-8)

Resources Download:
CAB installation package (x86)
CAB installation package (x64)
CRX installation Package
XPI installation Package
EXE installation package
Development documentation
Upgrade Log
The ASP. NET (C #) sample code:
asp.net-access Example
asp.net-sql2005 Example
JSP Sample code:
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sqlserver2005-utf8 Example
Jsp-mysql-utf8 Example
PHP Sample code:
Php-mysql-utf8 Example
Chrome,firefox,ie Breakpoint Continuation Control Example (the following example has integrated the plug-in for the Ie32,ie64,firefox,chrome platform)
asp.net-access Example
asp.net-sql2005 Example
JSP Sample code:
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sqlserver2005-utf8 Example
Jsp-mysql-utf8 Example
PHP Sample code:
Php-mysql-utf8 Example

Chrome,firefox,ie Breakpoint Continuation Control Example (the following example has integrated IE (x86), IE (x64), Firefox,chrome Platform plug-in)
asp.net-access Example
asp.net-sql2005 Example
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sql2005-utf8 Example
Jsp-mysql-utf8 Example
Php-mysql-utf8 Example
Thank you very much, I accept it.
Recently in a project, just have a large file upload requirements, users generally upload 1G files, on the Internet to find a circle have not found the right control.





Thanks for sharing,



HTTP is just a special use of TCP/IP (protocol).


  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.