July 17, 201214 yr Hello, So, I wonder, Is it possible to output the file-size after the page is loaded the main purpose of me wanting to do this is so I can measure the bandwidth my software is using on refresh?
July 17, 201214 yr Hello, So, I wonder, Is it possible to output the file-size after the page is loaded the main purpose of me wanting to do this is so I can measure the bandwidth my software is using on refresh? Mmm if you mean the filesize of a paticular file you can use filesize(); http://php.net/manual/en/function.filesize.php
August 18, 201214 yr I think this would have to be done from a server level. If you're trying to calculate the bandwidth based on an already rendered page, the results would be inconclusive as if external elements like images and scripts are cached then they won't be downloaded from the server.
Create an account or sign in to comment