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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Eddy_25
Forum Newbie
Posts: 7
Joined: Mon Mar 22, 2004 2:45 am
Contact:

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

Post 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!
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post 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.
Post Reply