flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Javier Guerrero GarcĂ­a <javi...@gmail.com>
Subject Re: Size of Result Returned From MySQL
Date Wed, 30 Aug 2017 23:59:54 GMT
Assuming your php output is buffered (99.9999999% of apache servers), just
getting the size of the output buffer would do:

http://php.net/manual/en/function.ob-get-length.php

In case response is also compressed (gzipped, deflated, etc...), or just
for simplicity, you can just grab the contents of the apache log file
(access_log) and sum the "length" column

Or just curl the same php request and save it to a file (curl gives you the
transferred size, filesize gives you the uncompressed size)

Or just look at the network tab of the developer tools in firefox/chrome
when doing the same request from your browser (first line is transferred
size, second line is uncompressed size)

Or just right-click and "save as" in your browser when doing the same
request (uncompressed, gzip afterwards for estimated compressed size)

Or just look at the "content-length" header returned by the apache

Etc... etc... etc...

On Thu, Aug 31, 2017 at 1:46 AM, bilbosax <waspence41@comcast.net> wrote:

> That is an interesting question, but honestly, I don't know.  Do you know
> if
> PHP has the ability to quantify the result set in MB??
>
>
>
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message