Ask for advice! How can I solve the problem of testing the upload and download speed with PHP?
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 .., during the test, you must obtain the time when the connection is initiated. no matter what method you use, you must know this time. of course, you must also know the end time of the response. c. 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.
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.