Detect how long it takes for a file to upload (PHP)

I think yes, there is $_SERVER['REQUEST_TIME'] variable that indicates the start of HTTP request, so on the very beginning of your script:

$upload_time = time() - $_SERVER['REQUEST_TIME'];

Result will be in seconds.

Leave a Comment