Ask for advice! How to solve the problem of testing upload and download speed with PHP?-php Tutorial

Source: Internet
Author: User
Ask for advice! Use PHP to test the upload and download speed !.. Online .. I have a general understanding of the principles .. I just don't know how to implement it .. Especially for testing the upload speed .. ------ Solution ------------------ the time when the connection is initiated must be obtained during the test. no matter what method you use, this time must be known, the end time of the response is also required to know ------ solution ------------------ curl directly ask for advice! Use PHP to test upload and download speeds
RT !..
Online ..

I have a general understanding of the principles ..

I just don't know how to implement it .. Especially for testing the upload speed ..

------ Solution --------------------
During the test, you must obtain the time when the connection is initiated. no matter what method you use, this time must be known.
Of course, the end time of the response must also be known.
------ Solution --------------------
Curl directly has the curl_info interface. php.net will be used for a look.

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.