Is it possible to know (serverside) the time it took for a file to upload? I have an image upload API and in my response I’d like to return the upload time (not including script execution time).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think yes, there is
$_SERVER['REQUEST_TIME']variable that indicates the start of HTTP request, so on the very beginning of your script:Result will be in seconds.