I want to find download time in PHP by sending a request to my MySQL server. I have one table with an href link to download the file. If I click download the download time shoul
I am not very much sure, but I don't think it is possible via PHP.
When I open a PHP page, the webserver gives me the page. When I click on a link which say downloads xyz.abc file, then it is actually another request to the webserver and the current PHP page is not involved in this. The current PHP page is just hosting the link.
When I click on the link, the webserver finds the file and sends it to the client. It is the webserver which serves the page and it is the webserver which can keep track of the time since it knows when it has opened the socket for file download and when that socket got closed.
If anyone knows how to do it via a PHP script, please let me know too.