I would like to measure and track how long it takes users to download specific files from my site. I'm not looking for an estimate, I would like to record actual download times.
I'm wondering if there's some way I can return the contents of the file being downloaded in my script by setting file headers and capturing before and after times. Or by having a page that saves start time in a database, triggers the download, and then redirects to a page that lookups start time and does the total time calculation. Or if there's someway I can use PHP sessions to help me with this.
Also wondering if I have to remove ob_start() output caching if I'm trying to time actual download times.
Any suggestions on how I can do this via PHP code or PHP code in conjunction with clientside Javascript?
Malcolm
I'm wondering if there's some way I can return the contents of the file being downloaded in my script by setting file headers and capturing before and after times. Or by having a page that saves start time in a database, triggers the download, and then redirects to a page that lookups start time and does the total time calculation. Or if there's someway I can use PHP sessions to help me with this.
Also wondering if I have to remove ob_start() output caching if I'm trying to time actual download times.
Any suggestions on how I can do this via PHP code or PHP code in conjunction with clientside Javascript?
Malcolm