Page 1 of 1

HELP NEEDED 2 !!! Amount of data in request/response?!

Posted: Mon Mar 22, 2004 2:51 am
by Eddy_25
Is it possible to found out the amount of data that is sent in response and data recieved in request from and to a server.

For example, if a have page on http://www.somedomain.com and i have a page some_page.php i want to know amount of all bytes that was in users request recieved by the server and when he gets this page, i want to know if it is possible to get amount of bytes sent to the user in response.

Please if any experiences or suggestions.

Thank you for your help!

Posted: Mon Mar 22, 2004 2:22 pm
by AVATAr
you can store all the output whth

http://www.php.net/manual/en/function.ob-start.php and http://www.php.net/manual/en/function.ob-get-flush.php

and then read the buffer to know what arw you sending.